pub struct ThumbnailContent {
pub file: ThumbnailFileContent,
pub image: Option<Box<ImageContent, Global>>,
}
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, Global>>
The image info of the thumbnail.
Implementations
sourceimpl ThumbnailContent
impl ThumbnailContent
sourcepub fn new(
file: ThumbnailFileContent,
image: Option<Box<ImageContent, Global>>
) -> ThumbnailContent
pub fn new(
file: ThumbnailFileContent,
image: Option<Box<ImageContent, Global>>
) -> ThumbnailContent
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<ThumbnailContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ThumbnailContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for ThumbnailContent
impl Serialize for ThumbnailContent
sourcefn 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
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