mod.rs (449B)
1 #[cfg(not(feature = "std"))] 2 extern crate alloc; 3 4 use radroots_events::profile::{RadrootsProfile, RadrootsProfileType}; 5 6 pub mod error; 7 8 #[cfg(feature = "nostr")] 9 pub mod encode; 10 11 #[cfg(feature = "serde_json")] 12 pub mod decode; 13 14 #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] 15 #[derive(Clone, Debug)] 16 pub struct RadrootsProfileData { 17 pub profile_type: Option<RadrootsProfileType>, 18 pub profile: RadrootsProfile, 19 }