#[non_exhaustive]pub struct AdditionalIPRangesConfig {
pub subnetwork: String,
pub pod_ipv4_range_names: Vec<String>,
/* private fields */
}Expand description
AdditionalIPRangesConfig is the configuration for individual additional subnetwork attached to the cluster
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. This can be the full path of the subnetwork or just the name. Example1: my-subnet Example2: projects/gke-project/regions/us-central1/subnetworks/my-subnet
pod_ipv4_range_names: Vec<String>List of secondary ranges names within this subnetwork that can be used for pod IPs. Example1: gke-pod-range1 Example2: gke-pod-range1,gke-pod-range2
Implementations§
Source§impl AdditionalIPRangesConfig
impl AdditionalIPRangesConfig
pub fn new() -> Self
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_pod_ipv4_range_names<T, V>(self, v: T) -> Self
pub fn set_pod_ipv4_range_names<T, V>(self, v: T) -> Self
Sets the value of pod_ipv4_range_names.
Trait Implementations§
Source§impl Clone for AdditionalIPRangesConfig
impl Clone for AdditionalIPRangesConfig
Source§fn clone(&self) -> AdditionalIPRangesConfig
fn clone(&self) -> AdditionalIPRangesConfig
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 AdditionalIPRangesConfig
impl Debug for AdditionalIPRangesConfig
Source§impl Default for AdditionalIPRangesConfig
impl Default for AdditionalIPRangesConfig
Source§fn default() -> AdditionalIPRangesConfig
fn default() -> AdditionalIPRangesConfig
Returns the “default value” for a type. Read more
Source§impl Message for AdditionalIPRangesConfig
impl Message for AdditionalIPRangesConfig
Source§impl PartialEq for AdditionalIPRangesConfig
impl PartialEq for AdditionalIPRangesConfig
impl StructuralPartialEq for AdditionalIPRangesConfig
Auto Trait Implementations§
impl Freeze for AdditionalIPRangesConfig
impl RefUnwindSafe for AdditionalIPRangesConfig
impl Send for AdditionalIPRangesConfig
impl Sync for AdditionalIPRangesConfig
impl Unpin for AdditionalIPRangesConfig
impl UnwindSafe for AdditionalIPRangesConfig
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