Struct lemmy_db_views_actor::person_mention_view::PersonMentionView [−][src]
pub struct PersonMentionView {
pub person_mention: PersonMention,
pub comment: Comment,
pub creator: PersonSafe,
pub post: Post,
pub community: CommunitySafe,
pub recipient: PersonSafeAlias1,
pub counts: CommentAggregates,
pub creator_banned_from_community: bool,
pub subscribed: bool,
pub saved: bool,
pub creator_blocked: bool,
pub my_vote: Option<i16>,
}
Fields
person_mention: PersonMention
comment: Comment
creator: PersonSafe
post: Post
community: CommunitySafe
recipient: PersonSafeAlias1
counts: CommentAggregates
creator_banned_from_community: bool
subscribed: bool
saved: bool
creator_blocked: bool
my_vote: Option<i16>
Implementations
pub fn read(
conn: &PgConnection,
person_mention_id: PersonMentionId,
my_person_id: Option<PersonId>
) -> Result<Self, Error>
Gets the number of unread mentions
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PersonMentionView
impl Send for PersonMentionView
impl Sync for PersonMentionView
impl Unpin for PersonMentionView
impl UnwindSafe for PersonMentionView
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more