Struct ruma::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§
source§impl FileContentInfo
impl FileContentInfo
sourcepub fn new() -> FileContentInfo
pub fn new() -> FileContentInfo
Creates an empty FileContentInfo
.
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<FileContentInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<FileContentInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for FileContentInfo
impl Serialize for FileContentInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more