pub struct Device {
pub hostname: String,
pub ip: String,
pub mac: String,
pub vendor: String,
pub is_current_host: bool,
}Expand description
Data structure representing a device on the network
Fields§
§hostname: StringHostname of the device
ip: StringIPv4 of the device
mac: StringMAC address of the device
vendor: StringVendor of the device if known
is_current_host: boolWhether or not the device is the current host running the scan
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Device
impl<'de> Deserialize<'de> for Device
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
Source§impl From<DeviceWithPorts> for Device
impl From<DeviceWithPorts> for Device
Source§fn from(value: DeviceWithPorts) -> Self
fn from(value: DeviceWithPorts) -> Self
Converts to this type from the input type.
impl Eq for Device
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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