#[non_exhaustive]pub struct DNSConfig {
pub cluster_dns: Provider,
pub cluster_dns_scope: DNSScope,
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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cluster_dns: Providercluster_dns indicates which in-cluster DNS provider should be used.
cluster_dns_scope: DNSScopecluster_dns_scope indicates the scope of access to cluster DNS records.
cluster_dns_domain: Stringcluster_dns_domain is the suffix used for all cluster service records.
additive_vpc_scope_dns_domain: StringOptional. The domain used in Additive VPC scope.
Implementations§
Source§impl DNSConfig
impl DNSConfig
Sourcepub fn set_cluster_dns<T: Into<Provider>>(self, v: T) -> Self
pub fn set_cluster_dns<T: Into<Provider>>(self, v: T) -> Self
Sets the value of cluster_dns.
Sourcepub fn set_cluster_dns_scope<T: Into<DNSScope>>(self, v: T) -> Self
pub fn set_cluster_dns_scope<T: Into<DNSScope>>(self, v: T) -> Self
Sets the value of cluster_dns_scope.
Sourcepub fn set_cluster_dns_domain<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_dns_domain<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster_dns_domain.
Sourcepub fn set_additive_vpc_scope_dns_domain<T: Into<String>>(self, v: T) -> Self
pub fn set_additive_vpc_scope_dns_domain<T: Into<String>>(self, v: T) -> Self
Sets the value of additive_vpc_scope_dns_domain.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DNSConfig
impl<'de> Deserialize<'de> for DNSConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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