pub struct ThreadNode<C> {
pub id: i64,
pub visibility: Visibility,
pub comment: Option<C>,
pub body_html: Option<String>,
pub reactions: BTreeMap<String, i64>,
pub viewer_reactions: Vec<String>,
pub replies: Vec<ThreadNode<C>>,
pub more_replies: i64,
}Expand description
A comment in a thread, with its replies.
Fields§
§id: i64The comment’s key.
visibility: VisibilityHow the comment shows.
comment: Option<C>The comment with its author, when it’s Visibility::Visible. A placeholder carries
nothing of a removed or unapproved comment.
body_html: Option<String>The comment’s text as safe HTML, rendered from Markdown, when it’s visible.
reactions: BTreeMap<String, i64>The number of each reaction.
viewer_reactions: Vec<String>The viewer’s reactions, when the query has a viewer.
replies: Vec<ThreadNode<C>>The replies that are shown.
more_replies: i64The number of approved replies below the depth the query loaded.
Trait Implementations§
Source§impl<C: Debug> Debug for ThreadNode<C>
impl<C: Debug> Debug for ThreadNode<C>
Auto Trait Implementations§
impl<C> Forget for ThreadNode<C>
impl<C> Freeze for ThreadNode<C>where
C: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, i64> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, i64)>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ThreadNode<C>>: Freeze,
impl<C> Move for ThreadNode<C>
impl<C> RefUnwindSafe for ThreadNode<C>where
C: RefUnwindSafe,
impl<C> Send for ThreadNode<C>
impl<C> Sync for ThreadNode<C>
impl<C> Unpin for ThreadNode<C>
impl<C> UnsafeUnpin for ThreadNode<C>where
C: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, i64> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, i64)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ThreadNode<C>>: UnsafeUnpin,
impl<C> UnwindSafe for ThreadNode<C>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<K> ForeignKey<K> for K
impl<K> ForeignKey<K> for K
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoViewData for Twhere
T: Serialize,
impl<T> IntoViewData for Twhere
T: Serialize,
Source§fn into_view_data(self) -> ViewData
fn into_view_data(self) -> ViewData
Converts the value into view data.