pub struct CommentView {Show 13 fields
pub comment: Comment,
pub creator: Person,
pub post: Post,
pub community: Community,
pub counts: CommentAggregates,
pub creator_banned_from_community: bool,
pub banned_from_community: bool,
pub creator_is_moderator: bool,
pub creator_is_admin: bool,
pub subscribed: SubscribedType,
pub saved: bool,
pub creator_blocked: bool,
pub my_vote: Option<i16>,
}Expand description
A comment view.
Fields§
§comment: Comment§creator: Person§post: Post§community: Community§counts: CommentAggregates§creator_banned_from_community: bool§banned_from_community: bool§creator_is_moderator: bool§creator_is_admin: bool§subscribed: SubscribedType§saved: bool§creator_blocked: bool§my_vote: Option<i16>Trait Implementations§
Source§impl Clone for CommentView
impl Clone for CommentView
Source§fn clone(&self) -> CommentView
fn clone(&self) -> CommentView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommentView
impl Debug for CommentView
Source§impl<'de> Deserialize<'de> for CommentView
impl<'de> Deserialize<'de> for CommentView
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
Source§impl PartialEq for CommentView
impl PartialEq for CommentView
Source§impl Serialize for CommentView
impl Serialize for CommentView
impl StructuralPartialEq for CommentView
Auto Trait Implementations§
impl Freeze for CommentView
impl RefUnwindSafe for CommentView
impl Send for CommentView
impl Sync for CommentView
impl Unpin for CommentView
impl UnsafeUnpin for CommentView
impl UnwindSafe for CommentView
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