syncthing_types/system/
mod.rs1mod connections;
2mod discovery;
3mod error;
4mod log;
5mod loglevels;
6mod ping;
7mod status;
8mod upgrade;
9mod version;
10
11pub use connections::*;
12pub use discovery::*;
13pub use error::*;
14pub use log::*;
15pub use loglevels::*;
16pub use ping::*;
17pub use status::*;
18pub use upgrade::*;
19pub use version::*;
20
21use serde::{Deserialize, Serialize};
22
23use crate::Timestamp;
24
25#[non_exhaustive]
26#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
27pub struct Entry {
28 pub when: Timestamp,
29 pub message: String,
30}
31
32#[non_exhaustive]
33#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
34#[serde(rename_all = "camelCase")]
35pub struct Statistics {
36 pub at: Timestamp,
37 pub in_bytes_total: u64,
38 pub out_bytes_total: u64,
39 pub started_at: Timestamp,
40}