#[non_exhaustive]pub struct UsableSubnetworkSecondaryRange {
pub ip_cidr_range: Option<String>,
pub range_name: Option<String>,
/* private fields */
}Available on crate feature
subnetworks only.Expand description
Secondary IP range of a usable subnetwork.
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.ip_cidr_range: Option<String>The range of IP addresses belonging to this subnetwork secondary range.
range_name: Option<String>The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name must be unique within the subnetwork.
Implementations§
Source§impl UsableSubnetworkSecondaryRange
impl UsableSubnetworkSecondaryRange
pub fn new() -> Self
Sourcepub fn set_ip_cidr_range<T>(self, v: T) -> Self
pub fn set_ip_cidr_range<T>(self, v: T) -> Self
Sets the value of ip_cidr_range.
§Example
ⓘ
let x = UsableSubnetworkSecondaryRange::new().set_ip_cidr_range("example");Sourcepub fn set_or_clear_ip_cidr_range<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_ip_cidr_range<T>(self, v: Option<T>) -> Self
Sets or clears the value of ip_cidr_range.
§Example
ⓘ
let x = UsableSubnetworkSecondaryRange::new().set_or_clear_ip_cidr_range(Some("example"));
let x = UsableSubnetworkSecondaryRange::new().set_or_clear_ip_cidr_range(None::<String>);Sourcepub fn set_range_name<T>(self, v: T) -> Self
pub fn set_range_name<T>(self, v: T) -> Self
Sets the value of range_name.
§Example
ⓘ
let x = UsableSubnetworkSecondaryRange::new().set_range_name("example");Sourcepub fn set_or_clear_range_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_range_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of range_name.
§Example
ⓘ
let x = UsableSubnetworkSecondaryRange::new().set_or_clear_range_name(Some("example"));
let x = UsableSubnetworkSecondaryRange::new().set_or_clear_range_name(None::<String>);Trait Implementations§
Source§impl Clone for UsableSubnetworkSecondaryRange
impl Clone for UsableSubnetworkSecondaryRange
Source§fn clone(&self) -> UsableSubnetworkSecondaryRange
fn clone(&self) -> UsableSubnetworkSecondaryRange
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 Default for UsableSubnetworkSecondaryRange
impl Default for UsableSubnetworkSecondaryRange
Source§fn default() -> UsableSubnetworkSecondaryRange
fn default() -> UsableSubnetworkSecondaryRange
Returns the “default value” for a type. Read more
Source§impl PartialEq for UsableSubnetworkSecondaryRange
impl PartialEq for UsableSubnetworkSecondaryRange
Source§fn eq(&self, other: &UsableSubnetworkSecondaryRange) -> bool
fn eq(&self, other: &UsableSubnetworkSecondaryRange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UsableSubnetworkSecondaryRange
Auto Trait Implementations§
impl Freeze for UsableSubnetworkSecondaryRange
impl RefUnwindSafe for UsableSubnetworkSecondaryRange
impl Send for UsableSubnetworkSecondaryRange
impl Sync for UsableSubnetworkSecondaryRange
impl Unpin for UsableSubnetworkSecondaryRange
impl UnwindSafe for UsableSubnetworkSecondaryRange
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