list_set.rs (550B)
1 use crate::social::list::ListEntry; 2 3 #[cfg(not(feature = "std"))] 4 use alloc::{string::String, vec::Vec}; 5 6 #[cfg_attr(all(test, feature = "std"), derive(dto_bindgen::Dto))] 7 #[cfg_attr(all(test, feature = "std"), dto(export))] 8 #[cfg_attr( 9 any(feature = "serde", test), 10 derive(serde::Serialize, serde::Deserialize) 11 )] 12 #[derive(Clone, Debug)] 13 pub struct ListSet { 14 pub d_tag: String, 15 pub content: String, 16 pub entries: Vec<ListEntry>, 17 pub title: Option<String>, 18 pub description: Option<String>, 19 pub image: Option<String>, 20 }