pub struct DnsConfig {
pub cluster_dns: i32,
pub cluster_dns_scope: i32,
pub cluster_dns_domain: String,
pub additive_vpc_scope_dns_domain: String,
}
Expand description
DNSConfig contains the desired set of options for configuring clusterDNS.
Fields§
§cluster_dns: i32
cluster_dns indicates which in-cluster DNS provider should be used.
cluster_dns_scope: i32
cluster_dns_scope indicates the scope of access to cluster DNS records.
cluster_dns_domain: String
cluster_dns_domain is the suffix used for all cluster service records.
additive_vpc_scope_dns_domain: String
Optional. The domain used in Additive VPC scope.
Implementations§
source§impl DnsConfig
impl DnsConfig
sourcepub fn cluster_dns(&self) -> Provider
pub fn cluster_dns(&self) -> Provider
Returns the enum value of cluster_dns
, or the default if the field is set to an invalid enum value.
sourcepub fn set_cluster_dns(&mut self, value: Provider)
pub fn set_cluster_dns(&mut self, value: Provider)
Sets cluster_dns
to the provided enum value.
sourcepub fn cluster_dns_scope(&self) -> DnsScope
pub fn cluster_dns_scope(&self) -> DnsScope
Returns the enum value of cluster_dns_scope
, or the default if the field is set to an invalid enum value.
sourcepub fn set_cluster_dns_scope(&mut self, value: DnsScope)
pub fn set_cluster_dns_scope(&mut self, value: DnsScope)
Sets cluster_dns_scope
to the provided enum value.
Trait Implementations§
source§impl Message for DnsConfig
impl Message for DnsConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for DnsConfig
impl PartialEq for DnsConfig
impl StructuralPartialEq for DnsConfig
Auto Trait Implementations§
impl Freeze for DnsConfig
impl RefUnwindSafe for DnsConfig
impl Send for DnsConfig
impl Sync for DnsConfig
impl Unpin for DnsConfig
impl UnwindSafe for DnsConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request