#[non_exhaustive]pub struct UsableSubnetworkSecondaryRange {
pub range_name: String,
pub ip_cidr_range: String,
pub status: Status,
}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.range_name: StringThe name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance.
ip_cidr_range: StringThe range of IP addresses belonging to this subnetwork secondary range.
status: StatusThis field is to determine the status of the secondary range programmably.
Implementations§
Source§impl UsableSubnetworkSecondaryRange
impl UsableSubnetworkSecondaryRange
Sourcepub fn set_range_name<T: Into<String>>(self, v: T) -> Self
pub fn set_range_name<T: Into<String>>(self, v: T) -> Self
Sets the value of range_name.
Sourcepub fn set_ip_cidr_range<T: Into<String>>(self, v: T) -> Self
pub fn set_ip_cidr_range<T: Into<String>>(self, v: T) -> Self
Sets the value of ip_cidr_range.
Sourcepub fn set_status<T: Into<Status>>(self, v: T) -> Self
pub fn set_status<T: Into<Status>>(self, v: T) -> Self
Sets the value of status.
Trait Implementations§
Source§impl Clone for UsableSubnetworkSecondaryRange
impl Clone for UsableSubnetworkSecondaryRange
Source§fn clone(&self) -> UsableSubnetworkSecondaryRange
fn clone(&self) -> UsableSubnetworkSecondaryRange
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 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<'de> Deserialize<'de> for UsableSubnetworkSecondaryRange
impl<'de> Deserialize<'de> for UsableSubnetworkSecondaryRange
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 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