Struct ruma_common::events::image::ThumbnailContent
source · pub struct ThumbnailContent {
pub file: ThumbnailFileContent,
pub image: Option<Box<ImageContent>>,
}Available on crate features
events and unstable-msc3552 only.Expand description
Thumbnail content.
Fields§
§file: ThumbnailFileContentThe file info of the thumbnail.
image: Option<Box<ImageContent>>The image info of the thumbnail.
Implementations§
source§impl ThumbnailContent
impl ThumbnailContent
sourcepub fn new(file: ThumbnailFileContent, image: Option<Box<ImageContent>>) -> Self
pub fn new(file: ThumbnailFileContent, image: Option<Box<ImageContent>>) -> Self
Creates a ThumbnailContent with the given file and image info.
Trait Implementations§
source§impl Clone for ThumbnailContent
impl Clone for ThumbnailContent
source§fn clone(&self) -> ThumbnailContent
fn clone(&self) -> ThumbnailContent
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 ThumbnailContent
impl Debug for ThumbnailContent
source§impl<'de> Deserialize<'de> for ThumbnailContent
impl<'de> Deserialize<'de> for ThumbnailContent
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