pub struct Interface {Show 18 fields
pub name: InterfaceName,
pub description: Option<String>,
pub addresses: Vec<IpAddress>,
pub shutdown: bool,
pub mtu: Option<u32>,
pub speed: Option<InterfaceSpeed>,
pub duplex: Option<Duplex>,
pub l2: Option<L2Config>,
pub helper_addresses: Vec<IpAddr>,
pub acl_in: Option<String>,
pub acl_out: Option<String>,
pub nat_direction: Option<NatDirection>,
pub hsrp: Vec<HsrpGroup>,
pub ospf: Option<InterfaceOspf>,
pub voice_vlan: Option<u16>,
pub storm_control: Option<StormControl>,
pub stp: InterfaceStp,
pub confidence: Confidence,
}Fields§
§name: InterfaceNameНормализованное имя: “GigabitEthernet0/0” → “GigabitEthernet0/0” Рендерер сам адаптирует под целевой вендор
description: Option<String>§addresses: Vec<IpAddress>§shutdown: bool§mtu: Option<u32>§speed: Option<InterfaceSpeed>§duplex: Option<Duplex>§l2: Option<L2Config>§helper_addresses: Vec<IpAddr>§acl_in: Option<String>§acl_out: Option<String>§nat_direction: Option<NatDirection>§hsrp: Vec<HsrpGroup>§ospf: Option<InterfaceOspf>§voice_vlan: Option<u16>§storm_control: Option<StormControl>§stp: InterfaceStp§confidence: ConfidenceTrait 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
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnsafeUnpin 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