aboutsummaryrefslogtreecommitdiff
path: root/common/src/lib.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-08-06 11:49:09 +0200
committermetamuffin <metamuffin@disroot.org>2023-08-06 11:49:09 +0200
commitcd366dfdfad18b38c4e542e6db61ced3929d42f9 (patch)
tree9fd47c3964b13a52e09373e3eb8b79225eb56c5e /common/src/lib.rs
parent98538d1e7220ffb7126c0b5e3d5f9c6c44e4dba9 (diff)
downloadjellything-cd366dfdfad18b38c4e542e6db61ced3929d42f9.tar
jellything-cd366dfdfad18b38c4e542e6db61ced3929d42f9.tar.bz2
jellything-cd366dfdfad18b38c4e542e6db61ced3929d42f9.tar.zst
quick setup command
Diffstat (limited to 'common/src/lib.rs')
-rw-r--r--common/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs
index 60cb37f..a96df9e 100644
--- a/common/src/lib.rs
+++ b/common/src/lib.rs
@@ -17,7 +17,7 @@ pub struct Node {
}
#[rustfmt::skip]
-#[derive(Debug, Clone, Deserialize, Serialize)]
+#[derive(Debug, Clone, Deserialize, Serialize, Default)]
pub struct NodePrivate {
#[serde(default)] pub id: Option<String>,
#[serde(default)] pub import: Option<RemoteImportOptions>,
@@ -27,7 +27,7 @@ pub struct NodePrivate {
}
#[rustfmt::skip]
-#[derive(Debug, Clone, Deserialize, Serialize)]
+#[derive(Debug, Clone, Deserialize, Serialize, Default)]
pub struct NodePublic {
pub kind: NodeKind,
pub title: String,