woah calm down blud
This commit is contained in:
1 parent
310b0b462d
commit
0c1e0e222b
4 files changed
+133
-14
No files matched your search
@@ -250,6 +250,27 @@ pub struct DeviceInventory {
|
||||
pub devices: Vec<Device>,
|
||||
}
|
||||
|
||||
#[skip_serializing_none]
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
pub struct InterfaceSummary {
|
||||
pub ifindex: u32,
|
||||
pub ifname: String,
|
||||
pub operstate: String,
|
||||
#[serde(with = "mac::option_mac")]
|
||||
pub mac: Option<MacAddr>,
|
||||
pub addrs: Vec<InterfaceAddr>,
|
||||
}
|
||||
|
||||
#[skip_serializing_none]
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
pub struct InterfaceAddr {
|
||||
pub family: Option<String>,
|
||||
pub cidr: Option<String>,
|
||||
pub broadcast: Option<std::net::Ipv4Addr>,
|
||||
pub scope: Option<String>,
|
||||
pub label: Option<String>,
|
||||
}
|
||||
|
||||
#[skip_serializing_none]
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, Copy, Hash, PartialEq, Eq)]
|
||||
pub struct WakeTarget {
|
||||
|
||||
Reference in new issue
Block a user