#[non_exhaustive]pub struct Subnet {
pub name: String,
pub ip_cidr_range: String,
pub gateway_ip: String,
pub type: String,
pub state: State,
pub vlan_id: i32,
/* private fields */
}Expand description
Subnet in a private cloud. Either management subnets (such as vMotion) that
are read-only, or userDefined, which can also be updated.
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.name: StringOutput only. The resource name of this subnet.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
projects/my-project/locations/us-central1-a/privateClouds/my-cloud/subnets/my-subnet
ip_cidr_range: StringThe IP address range of the subnet in CIDR format ‘10.0.0.0/24’.
gateway_ip: StringThe IP address of the gateway of this subnet. Must fall within the IP prefix defined above.
type: StringOutput only. The type of the subnet. For example “management” or “userDefined”.
state: StateOutput only. The state of the resource.
vlan_id: i32Output only. VLAN ID of the VLAN on which the subnet is configured
Implementations§
Source§impl Subnet
impl Subnet
pub fn new() -> 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
Sourcepub fn set_gateway_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_gateway_ip<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
impl StructuralPartialEq for Subnet
Auto Trait Implementations§
impl Freeze for Subnet
impl RefUnwindSafe for Subnet
impl Send for Subnet
impl Sync for Subnet
impl Unpin for Subnet
impl UnwindSafe for Subnet
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