#[non_exhaustive]pub struct UsableSubnetwork {
pub subnetwork: String,
pub network: String,
pub ip_cidr_range: String,
pub secondary_ip_ranges: Vec<UsableSubnetworkSecondaryRange>,
pub status_message: String,
/* private fields */
}Expand description
UsableSubnetwork resource returns the subnetwork name, its associated network and the primary CIDR range.
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: StringSubnetwork Name. Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
network: StringNetwork Name. Example: projects/my-project/global/networks/my-network
ip_cidr_range: StringThe range of internal addresses that are owned by this subnetwork.
secondary_ip_ranges: Vec<UsableSubnetworkSecondaryRange>Secondary IP ranges.
status_message: StringA human readable status message representing the reasons for cases where the caller cannot use the secondary ranges under the subnet. For example if the secondary_ip_ranges is empty due to a permission issue, an insufficient permission message will be given by status_message.
Implementations§
Source§impl UsableSubnetwork
impl UsableSubnetwork
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
Sourcepub fn set_network<T: Into<String>>(self, v: T) -> Self
pub fn set_network<T: Into<String>>(self, v: T) -> Self
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.
§Example
ⓘ
let x = UsableSubnetwork::new().set_ip_cidr_range("example");Sourcepub fn set_secondary_ip_ranges<T, V>(self, v: T) -> Self
pub fn set_secondary_ip_ranges<T, V>(self, v: T) -> Self
Sets the value of secondary_ip_ranges.
§Example
ⓘ
use google_cloud_container_v1::model::UsableSubnetworkSecondaryRange;
let x = UsableSubnetwork::new()
.set_secondary_ip_ranges([
UsableSubnetworkSecondaryRange::default()/* use setters */,
UsableSubnetworkSecondaryRange::default()/* use (different) setters */,
]);Sourcepub fn set_status_message<T: Into<String>>(self, v: T) -> Self
pub fn set_status_message<T: Into<String>>(self, v: T) -> Self
Sets the value of status_message.
§Example
ⓘ
let x = UsableSubnetwork::new().set_status_message("example");Trait Implementations§
Source§impl Clone for UsableSubnetwork
impl Clone for UsableSubnetwork
Source§fn clone(&self) -> UsableSubnetwork
fn clone(&self) -> UsableSubnetwork
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 UsableSubnetwork
impl Debug for UsableSubnetwork
Source§impl Default for UsableSubnetwork
impl Default for UsableSubnetwork
Source§fn default() -> UsableSubnetwork
fn default() -> UsableSubnetwork
Returns the “default value” for a type. Read more
Source§impl Message for UsableSubnetwork
impl Message for UsableSubnetwork
Source§impl PartialEq for UsableSubnetwork
impl PartialEq for UsableSubnetwork
impl StructuralPartialEq for UsableSubnetwork
Auto Trait Implementations§
impl Freeze for UsableSubnetwork
impl RefUnwindSafe for UsableSubnetwork
impl Send for UsableSubnetwork
impl Sync for UsableSubnetwork
impl Unpin for UsableSubnetwork
impl UnwindSafe for UsableSubnetwork
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