aboutsummaryrefslogtreecommitdiff
path: root/src/storage.rs
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2024-06-17 10:35:06 +0200
committerGitHub <[email protected]>2024-06-17 10:35:06 +0200
commitc6baa076dc41dd43b3888d713fcf39fa901d2cd3 (patch)
treeba345251131779e76c076d60971e4f7f066bf146 /src/storage.rs
parent04cd0aee6d000073e49b80a530a40cdb176f7f10 (diff)
parent8268b826cc45f5b2bd31b72339cc310789ab22d4 (diff)
downloadwebol-c6baa076dc41dd43b3888d713fcf39fa901d2cd3.tar
webol-c6baa076dc41dd43b3888d713fcf39fa901d2cd3.tar.gz
webol-c6baa076dc41dd43b3888d713fcf39fa901d2cd3.zip
Merge pull request #37 from FxQnLr/time_update
Time update
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 {