pub struct AttachmentRecord {
pub link: String,
pub link_index: Option<u32>,
pub source: String,
pub device_mac: Option<String>,
pub device_name: Option<String>,
pub port: Option<String>,
pub native_vlan: Option<u16>,
pub management_address: Option<IpAddr>,
pub observed_at: SystemTime,
}Expand description
Where the machine running a sitting was plugged in, as a file holds it.
Fields§
§link: StringWhich of the scanning machine’s interfaces the announcement arrived on.
link_index: Option<u32>The interface index, where known. Absent, not zero, since zero means “no interface” to a kernel.
source: StringWhich protocol the announcement was read from.
device_mac: Option<String>The hardware address the device identified its chassis with.
device_name: Option<String>What the device calls itself.
port: Option<String>What the device calls the port this machine is plugged into.
native_vlan: Option<u16>The VLAN untagged traffic on this port lands in.
management_address: Option<IpAddr>An address the device is managed at.
observed_at: SystemTimeWhen the announcement arrived.
Trait Implementations§
Source§impl Clone for AttachmentRecord
impl Clone for AttachmentRecord
Source§impl Debug for AttachmentRecord
impl Debug for AttachmentRecord
Source§impl<'de> Deserialize<'de> for AttachmentRecord
impl<'de> Deserialize<'de> for AttachmentRecord
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
impl Eq for AttachmentRecord
Source§impl From<&Attachment> for AttachmentRecord
impl From<&Attachment> for AttachmentRecord
Source§fn from(attachment: &Attachment) -> Self
fn from(attachment: &Attachment) -> Self
Converts to this type from the input type.
Source§impl From<&AttachmentRecord> for Attachment
impl From<&AttachmentRecord> for Attachment
Source§fn from(record: &AttachmentRecord) -> Self
fn from(record: &AttachmentRecord) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AttachmentRecord
impl PartialEq for AttachmentRecord
Source§impl Serialize for AttachmentRecord
impl Serialize for AttachmentRecord
impl StructuralPartialEq for AttachmentRecord
Auto Trait Implementations§
impl Freeze for AttachmentRecord
impl RefUnwindSafe for AttachmentRecord
impl Send for AttachmentRecord
impl Sync for AttachmentRecord
impl Unpin for AttachmentRecord
impl UnsafeUnpin for AttachmentRecord
impl UnwindSafe for AttachmentRecord
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more