#[non_exhaustive]pub struct KubernetesConfig {
pub service_definition: Option<ServiceDefinition>,
/* private fields */
}
Expand description
KubernetesConfig contains the Kubernetes runtime configuration.
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.service_definition: Option<ServiceDefinition>
The service definition configuration.
Implementations§
Source§impl KubernetesConfig
impl KubernetesConfig
pub fn new() -> Self
Sourcepub fn set_service_definition<T: Into<Option<ServiceDefinition>>>(
self,
v: T,
) -> Self
pub fn set_service_definition<T: Into<Option<ServiceDefinition>>>( self, v: T, ) -> Self
Sets the value of service_definition.
Note that all the setters affecting service_definition
are mutually
exclusive.
Sourcepub fn gateway_service_mesh(&self) -> Option<&Box<GatewayServiceMesh>>
pub fn gateway_service_mesh(&self) -> Option<&Box<GatewayServiceMesh>>
The value of service_definition
if it holds a GatewayServiceMesh
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_gateway_service_mesh<T: Into<Box<GatewayServiceMesh>>>(
self,
v: T,
) -> Self
pub fn set_gateway_service_mesh<T: Into<Box<GatewayServiceMesh>>>( self, v: T, ) -> Self
Sets the value of service_definition
to hold a GatewayServiceMesh
.
Note that all the setters affecting service_definition
are
mutually exclusive.
Sourcepub fn service_networking(&self) -> Option<&Box<ServiceNetworking>>
pub fn service_networking(&self) -> Option<&Box<ServiceNetworking>>
The value of service_definition
if it holds a ServiceNetworking
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_service_networking<T: Into<Box<ServiceNetworking>>>(
self,
v: T,
) -> Self
pub fn set_service_networking<T: Into<Box<ServiceNetworking>>>( self, v: T, ) -> Self
Sets the value of service_definition
to hold a ServiceNetworking
.
Note that all the setters affecting service_definition
are
mutually exclusive.
Trait Implementations§
Source§impl Clone for KubernetesConfig
impl Clone for KubernetesConfig
Source§fn clone(&self) -> KubernetesConfig
fn clone(&self) -> KubernetesConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for KubernetesConfig
impl Debug for KubernetesConfig
Source§impl Default for KubernetesConfig
impl Default for KubernetesConfig
Source§fn default() -> KubernetesConfig
fn default() -> KubernetesConfig
Returns the “default value” for a type. Read more
Source§impl Message for KubernetesConfig
impl Message for KubernetesConfig
Source§impl PartialEq for KubernetesConfig
impl PartialEq for KubernetesConfig
impl StructuralPartialEq for KubernetesConfig
Auto Trait Implementations§
impl Freeze for KubernetesConfig
impl RefUnwindSafe for KubernetesConfig
impl Send for KubernetesConfig
impl Sync for KubernetesConfig
impl Unpin for KubernetesConfig
impl UnwindSafe for KubernetesConfig
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