diff options
author | metamuffin <metamuffin@disroot.org> | 2025-02-16 13:25:02 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-02-16 13:25:02 +0100 |
commit | abe663807337faa717f9485b047c8f0e808f2a09 (patch) | |
tree | db969df5bf119debc9e2ba6450e3fd05c2f39b0d /common | |
parent | 079fec9f206751047248c8c7733d7eccbd89d94b (diff) | |
download | jellything-abe663807337faa717f9485b047c8f0e808f2a09.tar jellything-abe663807337faa717f9485b047c8f0e808f2a09.tar.bz2 jellything-abe663807337faa717f9485b047c8f0e808f2a09.tar.zst |
stats page
Diffstat (limited to 'common')
-rw-r--r-- | common/src/lib.rs | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs index 3f9cfc3..c496cf2 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -55,6 +55,8 @@ pub struct Node { pub external_ids: BTreeMap<String, String>, #[serde(default)] pub visibility: Visibility, + #[serde(default)] + pub storage_size: u64, } #[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone, Encode, Decode)] @@ -126,7 +128,20 @@ pub enum Visibility { Visible, } -#[derive(Debug, Clone, Copy, Deserialize, Serialize, PartialEq, Eq, Default, Encode, Decode)] +#[derive( + Debug, + Clone, + Copy, + Deserialize, + Serialize, + PartialEq, + Eq, + Default, + Encode, + Decode, + PartialOrd, + Ord, +)] #[serde(rename_all = "snake_case")] pub enum NodeKind { #[default] |