#[non_exhaustive]pub struct SubnetStatus {
pub name: String,
pub mac_address: String,
pub link_layer_addresses: Vec<LinkLayerAddress>,
/* private fields */
}Expand description
SubnetStatus contains detailed and current technical information about this subnet resource.
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: StringThe name of CCFE subnet resource.
mac_address: StringBVI MAC address.
link_layer_addresses: Vec<LinkLayerAddress>A list of LinkLayerAddress, describing the ip address and corresponding link-layer address of the neighbors for this subnet.
Implementations§
Source§impl SubnetStatus
impl SubnetStatus
pub fn new() -> Self
Sourcepub fn set_mac_address<T: Into<String>>(self, v: T) -> Self
pub fn set_mac_address<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_link_layer_addresses<T, V>(self, v: T) -> Self
pub fn set_link_layer_addresses<T, V>(self, v: T) -> Self
Sets the value of link_layer_addresses.
§Example
ⓘ
use google_cloud_edgenetwork_v1::model::LinkLayerAddress;
let x = SubnetStatus::new()
.set_link_layer_addresses([
LinkLayerAddress::default()/* use setters */,
LinkLayerAddress::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for SubnetStatus
impl Clone for SubnetStatus
Source§fn clone(&self) -> SubnetStatus
fn clone(&self) -> SubnetStatus
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 SubnetStatus
impl Debug for SubnetStatus
Source§impl Default for SubnetStatus
impl Default for SubnetStatus
Source§fn default() -> SubnetStatus
fn default() -> SubnetStatus
Returns the “default value” for a type. Read more
Source§impl Message for SubnetStatus
impl Message for SubnetStatus
Source§impl PartialEq for SubnetStatus
impl PartialEq for SubnetStatus
impl StructuralPartialEq for SubnetStatus
Auto Trait Implementations§
impl Freeze for SubnetStatus
impl RefUnwindSafe for SubnetStatus
impl Send for SubnetStatus
impl Sync for SubnetStatus
impl Unpin for SubnetStatus
impl UnsafeUnpin for SubnetStatus
impl UnwindSafe for SubnetStatus
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