pub struct FileInfo {
pub mimetype: Option<String>,
pub size: Option<UInt>,
pub thumbnail_info: Option<Box<ThumbnailInfo>>,
pub thumbnail_source: Option<MediaSource>,
}Available on crate feature
events only.Expand description
Metadata about a file.
Fields§
§mimetype: Option<String>The mimetype of the file, e.g. “application/msword”.
size: Option<UInt>The size of the file in bytes.
thumbnail_info: Option<Box<ThumbnailInfo>>Metadata about the image referred to in thumbnail_source.
thumbnail_source: Option<MediaSource>The source of the thumbnail of the file.
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