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,
}Expand description
A single interface … block.
Fields§
§name: InterfaceNameParsed and normalized interface name.
description: Option<String>description line text.
addresses: Vec<IpAddress>IP addresses (primary first, then secondary).
shutdown: boolshutdown is present (true) or absent (false).
mtu: Option<u32>mtu <bytes>
speed: Option<InterfaceSpeed>speed <mbps> or speed auto.
duplex: Option<Duplex>duplex full/half/auto
l2: Option<L2Config>Layer-2 switchport configuration, if present.
helper_addresses: Vec<IpAddr>ip helper-address entries.
acl_in: Option<String>Inbound ACL name (ip access-group … in).
acl_out: Option<String>Outbound ACL name (ip access-group … out).
nat_direction: Option<NatDirection>ip nat inside / ip nat outside.
hsrp: Vec<HsrpGroup>HSRP groups configured on this interface.
ospf: Option<InterfaceOspf>Per-interface OSPF settings (ip ospf …).
voice_vlan: Option<u16>switchport voice vlan <id>
storm_control: Option<StormControl>storm-control thresholds.
stp: InterfaceStpPer-interface STP settings.
confidence: ConfidenceParser confidence for this interface block.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Interface
impl<'de> Deserialize<'de> for Interface
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Interface, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Interface, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Interface
impl Serialize for Interface
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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