pub struct PostFile {
pub id: Box<str>,
pub description: Option<Box<str>>,
pub link: Box<str>,
pub position: NonZeroU32,
pub created: OffsetDateTime,
pub original_name: Option<Box<str>>,
}Expand description
An API file of a post
Fields§
§id: Box<str>The id of the image
description: Option<Box<str>>The file description
link: Box<str>The link to the image file
position: NonZeroU32The position of the image in the post.
Starts at 1.
created: OffsetDateTimeThe time this image was created.
original_name: Option<Box<str>>The original name of the image.
Only present if the current user owns this image.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for File
impl<'de> Deserialize<'de> for File
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 File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
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