lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README | LICENSE

document.rs (832B)


      1 #![forbid(unsafe_code)]
      2 
      3 #[cfg(not(feature = "std"))]
      4 use alloc::{string::String, vec::Vec};
      5 
      6 #[cfg_attr(feature = "dto-bindgen", derive(dto_bindgen::Dto))]
      7 #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
      8 #[derive(Clone, Debug)]
      9 pub struct RadrootsDocumentSubject {
     10     pub pubkey: String,
     11     pub address: Option<String>,
     12 }
     13 
     14 #[cfg_attr(feature = "dto-bindgen", derive(dto_bindgen::Dto))]
     15 #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
     16 #[derive(Clone, Debug)]
     17 pub struct RadrootsDocument {
     18     pub d_tag: String,
     19     pub doc_type: String,
     20     pub title: String,
     21     pub version: String,
     22     pub summary: Option<String>,
     23     pub effective_at: Option<u32>,
     24     pub body_markdown: Option<String>,
     25     pub subject: RadrootsDocumentSubject,
     26     pub tags: Option<Vec<String>>,
     27 }