follow.rs (635B)
1 #[cfg(not(feature = "std"))] 2 use alloc::{string::String, vec::Vec}; 3 4 #[cfg_attr(feature = "dto-bindgen", derive(dto_bindgen::Dto))] 5 #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] 6 #[derive(Clone, Debug)] 7 pub struct RadrootsFollow { 8 pub list: Vec<RadrootsFollowProfile>, 9 } 10 11 #[cfg_attr(feature = "dto-bindgen", derive(dto_bindgen::Dto))] 12 #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] 13 #[derive(Clone, Debug)] 14 pub struct RadrootsFollowProfile { 15 pub published_at: u32, 16 pub public_key: String, 17 pub relay_url: Option<String>, 18 pub contact_name: Option<String>, 19 }