pub struct UnknownBlock {
pub line: usize,
pub context: String,
pub raw: String,
}Expand description
A command that the parser did not recognize.
Unrecognized commands are never silently discarded. Inspect
NetworkConfig::unknown_blocks to audit what the parser missed.
Fields§
§line: usizeSource line number in the original config (0 if unavailable).
context: StringConfig block context, e.g. "global", "interface GigabitEthernet0/0",
"router ospf 1".
raw: StringVerbatim command text.
Trait Implementations§
Source§impl Clone for UnknownBlock
impl Clone for UnknownBlock
Source§fn clone(&self) -> UnknownBlock
fn clone(&self) -> UnknownBlock
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 UnknownBlock
impl Debug for UnknownBlock
Source§impl<'de> Deserialize<'de> for UnknownBlock
impl<'de> Deserialize<'de> for UnknownBlock
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 UnknownBlock
impl RefUnwindSafe for UnknownBlock
impl Send for UnknownBlock
impl Sync for UnknownBlock
impl Unpin for UnknownBlock
impl UnsafeUnpin for UnknownBlock
impl UnwindSafe for UnknownBlock
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