pub struct Comment {Show 15 fields
pub id: String,
pub body: String,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub deleted_at: Option<DateTime<Utc>>,
pub user: CommentUser,
pub market_id: Option<String>,
pub event_id: Option<String>,
pub series_id: Option<String>,
pub parent_id: Option<String>,
pub reactions: Vec<CommentReaction>,
pub positions: Vec<CommentPosition>,
pub like_count: u32,
pub dislike_count: u32,
pub reply_count: u32,
}Expand description
Comment on a market/event/series
Fields§
§id: String§body: String§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§deleted_at: Option<DateTime<Utc>>§user: CommentUser§market_id: Option<String>§event_id: Option<String>§series_id: Option<String>§parent_id: Option<String>§reactions: Vec<CommentReaction>§positions: Vec<CommentPosition>§like_count: u32§dislike_count: u32§reply_count: u32Trait 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