pub struct NetworkDeviceData {
pub hardware_address: Option<String>,
pub interface_name: Option<String>,
pub ips: Option<Vec<String>>,
}
Expand description
NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.
Fields§
§hardware_address: Option<String>
HardwareAddress represents the hardware address (e.g. MAC Address) of the device’s network interface.
Must not be longer than 128 characters.
interface_name: Option<String>
InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod.
Must not be longer than 256 characters.
ips: Option<Vec<String>>
IPs lists the network addresses assigned to the device’s network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: “192.0.2.5/24” for IPv4 and “2001:db8::5/64” for IPv6.
Trait Implementations§
Source§impl Clone for NetworkDeviceData
impl Clone for NetworkDeviceData
Source§fn clone(&self) -> NetworkDeviceData
fn clone(&self) -> NetworkDeviceData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NetworkDeviceData
impl Debug for NetworkDeviceData
Source§impl DeepMerge for NetworkDeviceData
impl DeepMerge for NetworkDeviceData
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.