#[non_exhaustive]pub struct AdditionalPodNetworkConfig {
pub subnetwork: String,
pub secondary_pod_range: String,
pub max_pods_per_node: Option<MaxPodsConstraint>,
}Expand description
AdditionalPodNetworkConfig is the configuration for additional pod networks within the NodeNetworkConfig message
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.subnetwork: StringName of the subnetwork where the additional pod network belongs.
secondary_pod_range: StringThe name of the secondary range on the subnet which provides IP address for this pod range.
max_pods_per_node: Option<MaxPodsConstraint>The maximum number of pods per node which use this pod network.
Implementations§
Source§impl AdditionalPodNetworkConfig
impl AdditionalPodNetworkConfig
Sourcepub fn set_subnetwork<T: Into<String>>(self, v: T) -> Self
pub fn set_subnetwork<T: Into<String>>(self, v: T) -> Self
Sets the value of subnetwork.
Sourcepub fn set_secondary_pod_range<T: Into<String>>(self, v: T) -> Self
pub fn set_secondary_pod_range<T: Into<String>>(self, v: T) -> Self
Sets the value of secondary_pod_range.
Sourcepub fn set_max_pods_per_node<T: Into<Option<MaxPodsConstraint>>>(
self,
v: T,
) -> Self
pub fn set_max_pods_per_node<T: Into<Option<MaxPodsConstraint>>>( self, v: T, ) -> Self
Sets the value of max_pods_per_node.
Trait Implementations§
Source§impl Clone for AdditionalPodNetworkConfig
impl Clone for AdditionalPodNetworkConfig
Source§fn clone(&self) -> AdditionalPodNetworkConfig
fn clone(&self) -> AdditionalPodNetworkConfig
Returns a copy 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 AdditionalPodNetworkConfig
impl Debug for AdditionalPodNetworkConfig
Source§impl Default for AdditionalPodNetworkConfig
impl Default for AdditionalPodNetworkConfig
Source§fn default() -> AdditionalPodNetworkConfig
fn default() -> AdditionalPodNetworkConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AdditionalPodNetworkConfigwhere
AdditionalPodNetworkConfig: Default,
impl<'de> Deserialize<'de> for AdditionalPodNetworkConfigwhere
AdditionalPodNetworkConfig: Default,
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
Source§impl Message for AdditionalPodNetworkConfig
impl Message for AdditionalPodNetworkConfig
impl StructuralPartialEq for AdditionalPodNetworkConfig
Auto Trait Implementations§
impl Freeze for AdditionalPodNetworkConfig
impl RefUnwindSafe for AdditionalPodNetworkConfig
impl Send for AdditionalPodNetworkConfig
impl Sync for AdditionalPodNetworkConfig
impl Unpin for AdditionalPodNetworkConfig
impl UnwindSafe for AdditionalPodNetworkConfig
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