pub struct VmInterface {Show 27 fields
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub virtual_machine: Box<BriefVirtualMachine>,
pub name: String,
pub enabled: Option<bool>,
pub parent: Option<Option<Box<NestedVmInterface>>>,
pub bridge: Option<Option<Box<NestedVmInterface>>>,
pub mtu: Option<Option<i32>>,
pub mac_address: Option<Option<String>>,
pub primary_mac_address: Option<Option<Box<BriefMacAddress>>>,
pub mac_addresses: Option<Option<Vec<BriefMacAddress>>>,
pub description: Option<String>,
pub mode: Option<Box<InterfaceMode>>,
pub untagged_vlan: Option<Option<Box<BriefVlan>>>,
pub tagged_vlans: Option<Vec<Vlan>>,
pub qinq_svlan: Option<Option<Box<BriefVlan>>>,
pub vlan_translation_policy: Option<Option<Box<BriefVlanTranslationPolicy>>>,
pub vrf: Option<Option<Box<BriefVrf>>>,
pub l2vpn_termination: Option<Option<Box<BriefL2VpnTermination>>>,
pub tags: Option<Vec<NestedTag>>,
pub custom_fields: Option<HashMap<String, Value>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
pub count_ipaddresses: Option<i32>,
pub count_fhrp_groups: Option<i32>,
}Expand description
VmInterface : Adds support for custom fields and tags.
Fields§
§id: Option<i32>§url: Option<String>§display_url: Option<String>§display: Option<String>§virtual_machine: Box<BriefVirtualMachine>§name: String§enabled: Option<bool>§parent: Option<Option<Box<NestedVmInterface>>>§bridge: Option<Option<Box<NestedVmInterface>>>§mtu: Option<Option<i32>>§mac_address: Option<Option<String>>§primary_mac_address: Option<Option<Box<BriefMacAddress>>>§mac_addresses: Option<Option<Vec<BriefMacAddress>>>§description: Option<String>§mode: Option<Box<InterfaceMode>>§untagged_vlan: Option<Option<Box<BriefVlan>>>§tagged_vlans: Option<Vec<Vlan>>§qinq_svlan: Option<Option<Box<BriefVlan>>>§vlan_translation_policy: Option<Option<Box<BriefVlanTranslationPolicy>>>§vrf: Option<Option<Box<BriefVrf>>>§l2vpn_termination: Option<Option<Box<BriefL2VpnTermination>>>§custom_fields: Option<HashMap<String, Value>>§created: Option<Option<String>>§last_updated: Option<Option<String>>§count_ipaddresses: Option<i32>§count_fhrp_groups: Option<i32>Implementations§
Source§impl VmInterface
impl VmInterface
Sourcepub fn new(virtual_machine: BriefVirtualMachine, name: String) -> VmInterface
pub fn new(virtual_machine: BriefVirtualMachine, name: String) -> VmInterface
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for VmInterface
impl Clone for VmInterface
Source§fn clone(&self) -> VmInterface
fn clone(&self) -> VmInterface
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 VmInterface
impl Debug for VmInterface
Source§impl Default for VmInterface
impl Default for VmInterface
Source§fn default() -> VmInterface
fn default() -> VmInterface
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VmInterface
impl<'de> Deserialize<'de> for VmInterface
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 VmInterface
impl PartialEq for VmInterface
Source§impl Serialize for VmInterface
impl Serialize for VmInterface
impl StructuralPartialEq for VmInterface
Auto Trait Implementations§
impl Freeze for VmInterface
impl RefUnwindSafe for VmInterface
impl Send for VmInterface
impl Sync for VmInterface
impl Unpin for VmInterface
impl UnwindSafe for VmInterface
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