pub struct FileInfo {Show 13 fields
pub id: Option<String>,
pub user_id: Option<String>,
pub post_id: Option<String>,
pub create_at: Option<i64>,
pub update_at: Option<i64>,
pub delete_at: Option<i64>,
pub name: Option<String>,
pub extension: Option<String>,
pub size: Option<i32>,
pub mime_type: Option<String>,
pub width: Option<i32>,
pub height: Option<i32>,
pub has_preview_image: Option<bool>,
}
Fields§
§id: Option<String>
The unique identifier for this file
user_id: Option<String>
The ID of the user that uploaded this file
post_id: Option<String>
If this file is attached to a post, the ID of that post
create_at: Option<i64>
The time in milliseconds a file was created
update_at: Option<i64>
The time in milliseconds a file was last updated
delete_at: Option<i64>
The time in milliseconds a file was deleted
name: Option<String>
The name of the file
extension: Option<String>
The extension at the end of the file name
size: Option<i32>
The size of the file in bytes
mime_type: Option<String>
The MIME type of the file
width: Option<i32>
If this file is an image, the width of the file
height: Option<i32>
If this file is an image, the height of the file
has_preview_image: Option<bool>
If this file is an image, whether or not it has a preview-sized version
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileInfo
impl<'de> Deserialize<'de> for FileInfo
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
impl StructuralPartialEq for FileInfo
Auto Trait Implementations§
impl Freeze for FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnwindSafe for FileInfo
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