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: ThumbnailFileContent
The file info of the thumbnail.
image: Option<Box<ImageContent>>
The image info of the thumbnail.
Implementations
sourceimpl 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
sourceimpl Clone for ThumbnailContent
impl Clone for ThumbnailContent
sourcefn clone(&self) -> ThumbnailContent
fn clone(&self) -> ThumbnailContent
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 ThumbnailContent
impl Debug for ThumbnailContent
sourceimpl<'de> Deserialize<'de> for ThumbnailContent
impl<'de> Deserialize<'de> for ThumbnailContent
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 ThumbnailContent
impl Serialize for ThumbnailContent
Auto Trait Implementations
impl RefUnwindSafe for ThumbnailContent
impl Send for ThumbnailContent
impl Sync for ThumbnailContent
impl Unpin for ThumbnailContent
impl UnwindSafe for ThumbnailContent
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