pub struct Post {
pub id: Box<str>,
pub title: Option<Box<str>>,
pub username: Box<str>,
pub privacy: Privacy,
pub report_status: i32,
pub views: u64,
pub nsfw: bool,
pub image_count: u64,
pub created: OffsetDateTime,
pub images: Box<[File]>,
pub delete_url: Option<Box<str>>,
}Expand description
An API post object
Fields§
§id: Box<str>The post id
title: Option<Box<str>>The post title
username: Box<str>The post author’s username
privacy: PrivacyThe privacy of the post
report_status: i32?
views: u64The number of views
nsfw: boolWhether the post is nsfw
image_count: u64The number of images
created: OffsetDateTimeThe time this was created
images: Box<[File]>The files of this post
delete_url: Option<Box<str>>The url to delete this post
Only present if the current user owns this post.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Post
impl<'de> Deserialize<'de> for Post
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 Post
impl RefUnwindSafe for Post
impl Send for Post
impl Sync for Post
impl Unpin for Post
impl UnwindSafe for Post
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