#[non_exhaustive]pub struct InterfaceUnit {Show 14 fields
pub number: String,
pub description: Option<String>,
pub vlan_id: Option<u32>,
pub vlan_id_unmatched: bool,
pub vlan_id_range: Option<String>,
pub vlan_tags: Option<VlanTags>,
pub input_vlan_map: Option<VlanMap>,
pub output_vlan_map: Option<VlanMap>,
pub encapsulation: Option<String>,
pub families: Vec<String>,
pub inet_addresses: Vec<String>,
pub inet6_addresses: Vec<String>,
pub iso_addresses: Vec<String>,
pub family_settings: Vec<UnitFamily>,
}Expand description
A logical unit <n> of an interface. Addresses are the raw address values (e.g. "10.0.0.1/24";
IS-IS NETs for family iso).
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.number: String§description: Option<String>§vlan_id: Option<u32>§vlan_id_unmatched: boolvlan-id unmatched.
vlan_id_range: Option<String>e.g. "100-200".
input_vlan_map: Option<VlanMap>§output_vlan_map: Option<VlanMap>§encapsulation: Option<String>Logical encapsulation, e.g. "vlan-bridge" or "vlan-ccc".
families: Vec<String>Every family <name> present, e.g. "inet", "inet6", "iso", "mpls".
inet_addresses: Vec<String>§inet6_addresses: Vec<String>§iso_addresses: Vec<String>§family_settings: Vec<UnitFamily>The settings of each family, in the order written.
Trait Implementations§
Source§impl Clone for InterfaceUnit
impl Clone for InterfaceUnit
Source§impl Debug for InterfaceUnit
impl Debug for InterfaceUnit
impl Eq for InterfaceUnit
Source§impl PartialEq for InterfaceUnit
impl PartialEq for InterfaceUnit
impl StructuralPartialEq for InterfaceUnit
Auto Trait Implementations§
impl Forget for InterfaceUnit
impl Freeze for InterfaceUnit
impl Move for InterfaceUnit
impl RefUnwindSafe for InterfaceUnit
impl Send for InterfaceUnit
impl Sync for InterfaceUnit
impl Unpin for InterfaceUnit
impl UnsafeUnpin for InterfaceUnit
impl UnwindSafe for InterfaceUnit
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