pub struct File {
pub hashes: Hashes,
pub mime_type: String,
pub processing_metadata: Option<bool>,
}Expand description
Struct that groups file-related data items.
Fields§
§hashes: HashesHashes of the file’s binary content, if available.
mime_type: StringThe MIME type for the file. This is determined by logic on the server and might not be the value provided when the file was uploaded.
processing_metadata: Option<bool>Flag indicating if the item is still being processed to extract metadata
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 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