diff --git a/src/collectors/network_collector.rs b/src/collectors/network_collector.rs index 276f7f2..97826e0 100644 --- a/src/collectors/network_collector.rs +++ b/src/collectors/network_collector.rs @@ -31,18 +31,18 @@ use super::collector_exceptions; /// * interface_speed - `u32` the speed of the interface. #[derive(Serialize, Debug)] pub struct NetworkInformation { - name: String, - interface_speed: Option, - v4ip: Option, - v4broadcast: Option, - v4netmask: Option, - v6ip: Option, - v6broadcast: Option, - v6netmask: Option, - mac_addr: Option, - index: Option, - is_physical: bool, - is_connected: bool, + pub name: String, + pub interface_speed: Option, + pub v4ip: Option, + pub v4broadcast: Option, + pub v4netmask: Option, + pub v6ip: Option, + pub v6broadcast: Option, + pub v6netmask: Option, + pub mac_addr: Option, + pub index: Option, + pub is_physical: bool, + pub is_connected: bool, } /// Collect information about all network interfaces.