#[non_exhaustive]pub struct InterfaceAttributes {
pub alias: Option<String>,
pub description: Option<String>,
pub index: Option<i64>,
pub ip_addresses: Option<Vec<String>>,
pub mac_address: Option<String>,
pub name: Option<String>,
pub status: Option<InterfaceAttributesStatus>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
The interface attributes
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.alias: Option<String>
The interface alias
description: Option<String>
The interface description
index: Option<i64>
The interface index
ip_addresses: Option<Vec<String>>
The interface IP addresses
mac_address: Option<String>
The interface MAC address
name: Option<String>
The interface name
status: Option<InterfaceAttributesStatus>
The interface status
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl InterfaceAttributes
impl InterfaceAttributes
pub fn new() -> InterfaceAttributes
pub fn alias(self, value: String) -> Self
pub fn description(self, value: String) -> Self
pub fn index(self, value: i64) -> Self
pub fn ip_addresses(self, value: Vec<String>) -> Self
pub fn mac_address(self, value: String) -> Self
pub fn name(self, value: String) -> Self
pub fn status(self, value: InterfaceAttributesStatus) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for InterfaceAttributes
impl Clone for InterfaceAttributes
Source§fn clone(&self) -> InterfaceAttributes
fn clone(&self) -> InterfaceAttributes
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 Debug for InterfaceAttributes
impl Debug for InterfaceAttributes
Source§impl Default for InterfaceAttributes
impl Default for InterfaceAttributes
Source§impl<'de> Deserialize<'de> for InterfaceAttributes
impl<'de> Deserialize<'de> for InterfaceAttributes
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 InterfaceAttributes
impl PartialEq for InterfaceAttributes
Source§impl Serialize for InterfaceAttributes
impl Serialize for InterfaceAttributes
impl StructuralPartialEq for InterfaceAttributes
Auto Trait Implementations§
impl Freeze for InterfaceAttributes
impl RefUnwindSafe for InterfaceAttributes
impl Send for InterfaceAttributes
impl Sync for InterfaceAttributes
impl Unpin for InterfaceAttributes
impl UnwindSafe for InterfaceAttributes
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