Struct ruma_common::events::file::FileContentInfo
source · pub struct FileContentInfo {
pub name: Option<String>,
pub mimetype: Option<String>,
pub size: Option<UInt>,
}Available on crate features
events and unstable-msc3551 only.Expand description
Information about a file content.
Fields§
§name: Option<String>The original filename of the uploaded file.
mimetype: Option<String>The mimetype of the file, e.g. “application/msword”.
size: Option<UInt>The size of the file in bytes.
Implementations§
Trait Implementations§
source§impl Clone for FileContentInfo
impl Clone for FileContentInfo
source§fn clone(&self) -> FileContentInfo
fn clone(&self) -> FileContentInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for FileContentInfo
impl Debug for FileContentInfo
source§impl Default for FileContentInfo
impl Default for FileContentInfo
source§fn default() -> FileContentInfo
fn default() -> FileContentInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FileContentInfo
impl<'de> Deserialize<'de> for FileContentInfo
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