Struct lemmy_db_views::post_view::PostView [−][src]
pub struct PostView {
pub post: Post,
pub creator: PersonSafe,
pub community: CommunitySafe,
pub creator_banned_from_community: bool,
pub counts: PostAggregates,
pub subscribed: bool,
pub saved: bool,
pub read: bool,
pub creator_blocked: bool,
pub my_vote: Option<i16>,
}
Fields
post: Post
creator: PersonSafe
community: CommunitySafe
creator_banned_from_community: bool
counts: PostAggregates
subscribed: bool
saved: bool
read: bool
creator_blocked: bool
my_vote: Option<i16>
Implementations
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
type DbTuple = (Post, PersonSafe, CommunitySafe, Option<CommunityPersonBan>, PostAggregates, Option<CommunityFollower>, Option<PostSaved>, Option<PostRead>, Option<PersonBlock>, Option<i16>)
Auto Trait Implementations
impl RefUnwindSafe for PostView
impl UnwindSafe for PostView
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