pub struct Comment {
pub id: String,
pub title: String,
pub content: String,
pub created_by: Person,
pub created_at: String,
pub edited: bool,
pub modified_by: Person,
pub modified_at: String,
pub can_edit: bool,
pub can_delete: bool,
}
Fields§
§id: String
§title: String
§content: String
§created_by: Person
§created_at: String
§edited: bool
§modified_by: Person
§modified_at: String
§can_edit: bool
§can_delete: bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Comment
impl<'de> Deserialize<'de> for Comment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Comment
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnwindSafe for Comment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more