aboutsummaryrefslogtreecommitdiff
path: root/src/storage.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage.rs')
-rw-r--r--src/storage.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/storage.rs b/src/storage.rs
index 52c2e60..90ff1b4 100644
--- a/src/storage.rs
+++ b/src/storage.rs
@@ -19,7 +19,7 @@ pub struct Device {
19 pub mac: MacAddress, 19 pub mac: MacAddress,
20 pub broadcast_addr: String, 20 pub broadcast_addr: String,
21 pub ip: Option<IpNetwork>, 21 pub ip: Option<IpNetwork>,
22 pub times: Option<Vec<i64>>, 22 pub times: Option<Vec<u64>>,
23} 23}
24 24
25impl Device { 25impl Device {
@@ -59,6 +59,8 @@ impl Device {
59 } 59 }
60} 60}
61 61
62// Dead Code allowed because of use in OpenApi Macro (not really dead code)
63#[allow(dead_code)]
62#[derive(ToSchema)] 64#[derive(ToSchema)]
63#[schema(as = Device)] 65#[schema(as = Device)]
64pub struct DeviceSchema { 66pub struct DeviceSchema {