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
sourceimpl Clone for FileContentInfo
impl Clone for FileContentInfo
sourcefn clone(&self) -> FileContentInfo
fn clone(&self) -> FileContentInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FileContentInfo
impl Debug for FileContentInfo
sourceimpl Default for FileContentInfo
impl Default for FileContentInfo
sourcefn default() -> FileContentInfo
fn default() -> FileContentInfo
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for FileContentInfo
impl<'de> Deserialize<'de> for FileContentInfo
sourcefn 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
sourceimpl Serialize for FileContentInfo
impl Serialize for FileContentInfo
Auto Trait Implementations
impl RefUnwindSafe for FileContentInfo
impl Send for FileContentInfo
impl Sync for FileContentInfo
impl Unpin for FileContentInfo
impl UnwindSafe for FileContentInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more