pub struct CommentColumns<C: CommentModel> {Show 14 fields
pub commentable_type: Column<C, MorphType<C::Commentable>>,
pub commentable_id: Column<C, i64>,
pub thread: Column<C, String>,
pub author_id: Column<C, Option<i64>>,
pub guest_name: Column<C, Option<String>>,
pub guest_email: Column<C, Option<String>>,
pub body: Column<C, String>,
pub status: Column<C, Status>,
pub moderated_at: Column<C, Option<Timestamp>>,
pub edited_at: Column<C, Option<Timestamp>>,
pub deleted_at: Column<C, Option<Timestamp>>,
pub replies_count: Column<C, i64>,
pub reactions_count: Column<C, i64>,
pub created_at: Column<C, Option<Timestamp>>,
}Expand description
The columns of a CommentModel.
Fields§
§commentable_type: Column<C, MorphType<C::Commentable>>The morph name of the model the comment belongs to.
commentable_id: Column<C, i64>The key of the model the comment belongs to.
thread: Column<C, String>The thread: every comment of one top-level comment’s tree shares it.
The author’s key, for comments by users.
guest_name: Column<C, Option<String>>The guest’s name, for comments by guests.
guest_email: Column<C, Option<String>>The guest’s email address, for comments by guests.
body: Column<C, String>The text.
status: Column<C, Status>Where the comment stands in moderation.
moderated_at: Column<C, Option<Timestamp>>When a moderator last changed the status.
edited_at: Column<C, Option<Timestamp>>When the author last edited the text.
deleted_at: Column<C, Option<Timestamp>>When the comment was removed while it had replies, leaving a placeholder.
replies_count: Column<C, i64>The number of direct replies.
reactions_count: Column<C, i64>The number of reactions of every kind.
created_at: Column<C, Option<Timestamp>>When the comment was posted.
Auto Trait Implementations§
impl<C> Forget for CommentColumns<C>
impl<C> Freeze for CommentColumns<C>where
&'static str: Freeze,
PhantomData<fn() -> (C, MorphType<<C as CommentModel>::Commentable>)>: Freeze,
PhantomData<fn() -> (C, i64)>: Freeze,
PhantomData<fn() -> (C, String)>: Freeze,
PhantomData<fn() -> (C, Option<i64>)>: Freeze,
PhantomData<fn() -> (C, Option<String>)>: Freeze,
PhantomData<fn() -> (C, Status)>: Freeze,
PhantomData<fn() -> (C, Option<Timestamp>)>: Freeze,
impl<C> Move for CommentColumns<C>
impl<C> RefUnwindSafe for CommentColumns<C>
impl<C> Send for CommentColumns<C>
impl<C> Sync for CommentColumns<C>
impl<C> Unpin for CommentColumns<C>
impl<C> UnsafeUnpin for CommentColumns<C>where
&'static str: UnsafeUnpin,
PhantomData<fn() -> (C, MorphType<<C as CommentModel>::Commentable>)>: UnsafeUnpin,
PhantomData<fn() -> (C, i64)>: UnsafeUnpin,
PhantomData<fn() -> (C, String)>: UnsafeUnpin,
PhantomData<fn() -> (C, Option<i64>)>: UnsafeUnpin,
PhantomData<fn() -> (C, Option<String>)>: UnsafeUnpin,
PhantomData<fn() -> (C, Status)>: UnsafeUnpin,
PhantomData<fn() -> (C, Option<Timestamp>)>: UnsafeUnpin,
impl<C> UnwindSafe for CommentColumns<C>where
&'static str: UnwindSafe,
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 more