From 3662e3f8c96ff5c79b0f3dfa848704deeae4fac7 Mon Sep 17 00:00:00 2001 From: ByteOtter Date: Thu, 18 Apr 2024 12:34:10 +0200 Subject: [PATCH] make network information fields public --- src/collectors/network_collector.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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.