pub struct Interface {Show 54 fields
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub device: Box<BriefDevice>,
pub vdcs: Option<Vec<VirtualDeviceContext>>,
pub module: Option<Option<Box<BriefModule>>>,
pub name: String,
pub label: Option<String>,
pub type: Box<InterfaceType>,
pub enabled: Option<bool>,
pub parent: Option<Option<Box<NestedInterface>>>,
pub bridge: Option<Option<Box<NestedInterface>>>,
pub lag: Option<Option<Box<NestedInterface>>>,
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 speed: Option<Option<i32>>,
pub duplex: Option<Option<Box<InterfaceDuplex>>>,
pub wwn: Option<Option<String>>,
pub mgmt_only: Option<bool>,
pub description: Option<String>,
pub mode: Option<Box<InterfaceMode>>,
pub rf_role: Option<Box<InterfaceRfRole>>,
pub rf_channel: Option<Box<InterfaceRfChannel>>,
pub poe_mode: Option<Box<InterfacePoeMode>>,
pub poe_type: Option<Box<InterfacePoeType>>,
pub rf_channel_frequency: Option<Option<f64>>,
pub rf_channel_width: Option<Option<f64>>,
pub tx_power: Option<Option<i32>>,
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 mark_connected: Option<bool>,
pub cable: Option<Option<Box<BriefCable>>>,
pub cable_end: Option<String>,
pub wireless_link: Option<Option<Box<NestedWirelessLink>>>,
pub link_peers: Option<Vec<Value>>,
pub link_peers_type: Option<Option<String>>,
pub wireless_lans: Option<Vec<WirelessLan>>,
pub vrf: Option<Option<Box<BriefVrf>>>,
pub l2vpn_termination: Option<Option<Box<BriefL2VpnTermination>>>,
pub connected_endpoints: Option<Option<Vec<Value>>>,
pub connected_endpoints_type: Option<Option<String>>,
pub connected_endpoints_reachable: Option<bool>,
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>,
pub _occupied: Option<bool>,
}Expand description
Interface : Adds support for custom fields and tags.
Fields§
§id: Option<i32>§url: Option<String>§display_url: Option<String>§display: Option<String>§device: Box<BriefDevice>§vdcs: Option<Vec<VirtualDeviceContext>>§module: Option<Option<Box<BriefModule>>>§name: String§label: Option<String>Physical label
type: Box<InterfaceType>§enabled: Option<bool>§parent: Option<Option<Box<NestedInterface>>>§bridge: Option<Option<Box<NestedInterface>>>§lag: Option<Option<Box<NestedInterface>>>§mtu: Option<Option<i32>>§mac_address: Option<Option<String>>§primary_mac_address: Option<Option<Box<BriefMacAddress>>>§mac_addresses: Option<Option<Vec<BriefMacAddress>>>§speed: Option<Option<i32>>§duplex: Option<Option<Box<InterfaceDuplex>>>§wwn: Option<Option<String>>§mgmt_only: Option<bool>This interface is used only for out-of-band management
description: Option<String>§mode: Option<Box<InterfaceMode>>§rf_role: Option<Box<InterfaceRfRole>>§rf_channel: Option<Box<InterfaceRfChannel>>§poe_mode: Option<Box<InterfacePoeMode>>§poe_type: Option<Box<InterfacePoeType>>§rf_channel_frequency: Option<Option<f64>>Populated by selected channel (if set)
rf_channel_width: Option<Option<f64>>Populated by selected channel (if set)
tx_power: Option<Option<i32>>§untagged_vlan: Option<Option<Box<BriefVlan>>>§tagged_vlans: Option<Vec<Vlan>>§qinq_svlan: Option<Option<Box<BriefVlan>>>§vlan_translation_policy: Option<Option<Box<BriefVlanTranslationPolicy>>>§mark_connected: Option<bool>Treat as if a cable is connected
cable: Option<Option<Box<BriefCable>>>§cable_end: Option<String>§wireless_link: Option<Option<Box<NestedWirelessLink>>>§link_peers: Option<Vec<Value>>§link_peers_type: Option<Option<String>>Return the type of the peer link terminations, or None.
wireless_lans: Option<Vec<WirelessLan>>§vrf: Option<Option<Box<BriefVrf>>>§l2vpn_termination: Option<Option<Box<BriefL2VpnTermination>>>§connected_endpoints: Option<Option<Vec<Value>>>§connected_endpoints_type: Option<Option<String>>§connected_endpoints_reachable: Option<bool>§custom_fields: Option<HashMap<String, Value>>§created: Option<Option<String>>§last_updated: Option<Option<String>>§count_ipaddresses: Option<i32>§count_fhrp_groups: Option<i32>§_occupied: Option<bool>Implementations§
Source§impl Interface
impl Interface
Sourcepub fn new(device: BriefDevice, name: String, type: InterfaceType) -> Interface
pub fn new(device: BriefDevice, name: String, type: InterfaceType) -> Interface
Adds support for custom fields and tags.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Interface
impl<'de> Deserialize<'de> for Interface
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
impl StructuralPartialEq for Interface
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnwindSafe for Interface
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