#[non_exhaustive]pub struct NetworkInterface {
pub hostname: Option<String>,
pub ip: Option<String>,
pub mac: Option<String>,
pub name: Option<String>,
pub namespace: Option<String>,
pub open_ports: Option<Vec<PortInfo>>,
pub subnet_prefix: Option<i64>,
pub type: Option<String>,
pub type_id: Option<i64>,
pub uid: Option<String>,
}Expand description
Network Interface
The Network Interface object describes the type and associated attributes of a physical or virtual network interface.
[] Category: | Name: network_interface
Constraints:
- at_least_one:
[name,uid]
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hostname: Option<String>Hostname
The hostname associated with the network interface.
recommended
ip: Option<String>IP Address
The IP address associated with the network interface.
recommended
mac: Option<String>MAC Address
The MAC address of the network interface.
recommended
name: Option<String>Name
The name of the network interface.
recommended
namespace: Option<String>Namespace
The namespace is useful in merger or acquisition situations. For example, when similar entities exist that you need to keep separate.
optional
open_ports: Option<Vec<PortInfo>>Open Ports
The list of open ports on a network interface, including port numbers and associated protocol information.
optional
subnet_prefix: Option<i64>Subnet Prefix Length
The subnet prefix length determines the number of bits used to represent the network part of the IP address. The remaining bits are reserved for identifying individual hosts within that subnet.
optional
type: Option<String>Type
The type of network interface.
optional
type_id: Option<i64>Type ID
The network interface type identifier.
recommended
uid: Option<String>Unique ID
The unique identifier for the network interface.
optional
Trait Implementations§
Source§impl Clone for NetworkInterface
impl Clone for NetworkInterface
Source§fn clone(&self) -> NetworkInterface
fn clone(&self) -> NetworkInterface
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more