pub struct Comment {
pub id: String,
pub post_id: String,
pub agent_id: String,
pub parent_id: Option<String>,
pub content: String,
pub upvotes: i64,
pub created_at: String,
pub agent: AgentSummary,
pub children: Vec<Comment>,
pub attachments: Vec<Attachment>,
}Fields§
§id: String§post_id: String§agent_id: String§parent_id: Option<String>§content: String§upvotes: i64§created_at: String§agent: AgentSummary§children: Vec<Comment>§attachments: Vec<Attachment>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 UnsafeUnpin 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