Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
node: Add metadata fields to node web config
Rūdolfs Ošiņš committed 1 year ago
commit 0be7453e764e26dcc2a3a4f4ad903b1b236cc753
parent 9edb633d98ef2cdce6529b598f6d33b6e3fa1a0e
1 file changed +9 -0
modified radicle/src/web.rs
@@ -10,6 +10,15 @@ use crate::prelude::RepoId;
pub struct Config {
    /// Pinned content.
    pub pinned: Pinned,
+
    /// URL pointing to an image for the node.
+
    #[serde(default, skip_serializing_if = "Option::is_none")]
+
    pub image_url: Option<String>,
+
    /// Node name.
+
    #[serde(default, skip_serializing_if = "Option::is_none")]
+
    pub name: Option<String>,
+
    /// Node description.
+
    #[serde(default, skip_serializing_if = "Option::is_none")]
+
    pub description: Option<String>,
}

/// Pinned content. This can be used to pin certain content when