Struct ruma_common::events::image::ThumbnailFileContentInfo
source · pub struct ThumbnailFileContentInfo {
pub mimetype: Option<String>,
pub size: Option<UInt>,
}Available on crate features
events and unstable-msc3552 only.Expand description
Information about a thumbnail file content.
Fields§
§mimetype: Option<String>The mimetype of the thumbnail, e.g. image/png.
size: Option<UInt>The size of the thumbnail in bytes.
Implementations§
Trait Implementations§
source§impl Clone for ThumbnailFileContentInfo
impl Clone for ThumbnailFileContentInfo
source§fn clone(&self) -> ThumbnailFileContentInfo
fn clone(&self) -> ThumbnailFileContentInfo
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 ThumbnailFileContentInfo
impl Debug for ThumbnailFileContentInfo
source§impl Default for ThumbnailFileContentInfo
impl Default for ThumbnailFileContentInfo
source§fn default() -> ThumbnailFileContentInfo
fn default() -> ThumbnailFileContentInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ThumbnailFileContentInfo
impl<'de> Deserialize<'de> for ThumbnailFileContentInfo
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