lib

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

gift_wrap.rs (651B)


      1 #![forbid(unsafe_code)]
      2 
      3 #[cfg(not(feature = "std"))]
      4 use alloc::string::String;
      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 RadrootsGiftWrap {
     10     pub recipient: RadrootsGiftWrapRecipient,
     11     pub content: String,
     12     pub expiration: Option<u32>,
     13 }
     14 
     15 #[cfg_attr(feature = "dto-bindgen", derive(dto_bindgen::Dto))]
     16 #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
     17 #[derive(Clone, Debug)]
     18 pub struct RadrootsGiftWrapRecipient {
     19     pub public_key: String,
     20     pub relay_url: Option<String>,
     21 }