pub struct NetworkConfig {Show 19 fields
pub hostname: Option<String>,
pub domain_name: Option<String>,
pub interfaces: Vec<Interface>,
pub vlans: Vec<Vlan>,
pub routing: RoutingConfig,
pub acls: Vec<Acl>,
pub nat: Vec<NatRule>,
pub ntp: Vec<NtpServer>,
pub dns: Vec<IpAddr>,
pub snmp: Option<SnmpConfig>,
pub aaa: Option<AaaConfig>,
pub stp: Option<GlobalStp>,
pub logging: Option<LoggingConfig>,
pub users: Vec<LocalUser>,
pub line_vty: Option<LineVty>,
pub ssh: Option<SshConfig>,
pub banner: Option<String>,
pub unknown_blocks: Vec<UnknownBlock>,
pub platform_specific: Vec<UnknownBlock>,
}Fields§
§hostname: Option<String>§domain_name: Option<String>§interfaces: Vec<Interface>§vlans: Vec<Vlan>§routing: RoutingConfig§acls: Vec<Acl>§nat: Vec<NatRule>§ntp: Vec<NtpServer>§dns: Vec<IpAddr>§snmp: Option<SnmpConfig>§aaa: Option<AaaConfig>§stp: Option<GlobalStp>§logging: Option<LoggingConfig>§users: Vec<LocalUser>§line_vty: Option<LineVty>§ssh: Option<SshConfig>§unknown_blocks: Vec<UnknownBlock>Всё что парсер не распознал — не выбрасываем, храним
platform_specific: Vec<UnknownBlock>Платформо-специфичные команды без аналога
Trait Implementations§
Source§impl Clone for NetworkConfig
impl Clone for NetworkConfig
Source§fn clone(&self) -> NetworkConfig
fn clone(&self) -> NetworkConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NetworkConfig
impl Debug for NetworkConfig
Source§impl Default for NetworkConfig
impl Default for NetworkConfig
Source§fn default() -> NetworkConfig
fn default() -> NetworkConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkConfig
impl<'de> Deserialize<'de> for NetworkConfig
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 NetworkConfig
impl RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnsafeUnpin for NetworkConfig
impl UnwindSafe for NetworkConfig
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