Struct backend::models::content::PostDisplay [−][src]
pub struct PostDisplay {
pub post: Post,
pub like: bool,
pub collection: bool,
pub is_update: bool,
}
Expand description
Post general information
Fields
PostDisplay::post
: Post information of the postPostDisplay::like
: Flag indicating whether the user liked the postPostDisplay::collection
: Flag indicating whether the user collected the postPostDisplay::is_update
: Flag indicating whether the post has new reply, in case that the user collected the post
Fields
post: Post
like: bool
collection: bool
is_update: bool
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
Auto Trait Implementations
impl RefUnwindSafe for PostDisplay
impl Send for PostDisplay
impl Sync for PostDisplay
impl Unpin for PostDisplay
impl UnwindSafe for PostDisplay
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
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