Struct backend::models::content::PostPage [−][src]
pub struct PostPage {
pub post_desc: Post,
pub reply_page: Vec<Reply>,
pub page: usize,
pub like: bool,
pub collection: bool,
}
Expand description
Post detail information
Fields
PostPage::post_desc
: Post information of the postPostPage::reply_page
: Reply information vector of the post, with the length up to tenPostPage::page
: Page number of the postPostPage::like
: Flag indicating whether the user liked the postPostPage::collection
: Flag indicating whether the user collected the post
Fields
post_desc: Post
reply_page: Vec<Reply>
page: usize
like: bool
collection: 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 PostPage
impl UnwindSafe for PostPage
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