pub struct ListPostsPost {
pub id: Box<str>,
pub title: Box<str>,
pub slug: Box<str>,
pub link: Box<str>,
pub nsfw: bool,
pub score: i64,
pub comments: u64,
pub views: u64,
pub thumbnail: Thumbnail,
pub extra: HashMap<Box<str>, Value>,
}Expand description
The post object from a list posts call.
Fields§
§id: Box<str>The post id
title: Box<str>The post title
slug: Box<str>The post slug
link: Box<str>The post link
nsfw: boolWhether this is nsfw
score: i64The score of the post
comments: u64The number of comments on the post
views: u64The number of views
thumbnail: ThumbnailThe thumbnail
extra: HashMap<Box<str>, Value>Extra key values
Trait Implementations§
Source§impl Debug for ListPostsPost
impl Debug for ListPostsPost
Source§impl<'de> Deserialize<'de> for ListPostsPost
impl<'de> Deserialize<'de> for ListPostsPost
Source§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 Freeze for ListPostsPost
impl RefUnwindSafe for ListPostsPost
impl Send for ListPostsPost
impl Sync for ListPostsPost
impl Unpin for ListPostsPost
impl UnwindSafe for ListPostsPost
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