pub struct Document {
pub id: i64,
pub owner_id: i64,
pub title: String,
pub size: i64,
pub ext: String,
pub url: String,
pub date: i64,
pub type: Option<i32>,
pub preview: Option<DocumentPreview>,
}Expand description
Document attachment
Fields§
§id: i64Document ID
owner_id: i64Owner ID
title: StringTitle
size: i64Size
ext: StringExtension
url: StringURL
date: i64Date
type: Option<i32>Type
preview: Option<DocumentPreview>Preview
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Document
impl<'de> Deserialize<'de> for Document
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 Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
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