Struct matrix_sdk::attachment::Thumbnail
source · [−]pub struct Thumbnail<'a> {
pub data: &'a [u8],
pub content_type: &'a Mime,
pub info: Option<BaseThumbnailInfo>,
}Expand description
A thumbnail to upload and send for an attachment.
Fields
data: &'a [u8]The raw bytes of the thumbnail.
content_type: &'a MimeThe type of the thumbnail, this will be used as the content-type header.
info: Option<BaseThumbnailInfo>The metadata of the thumbnail.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Thumbnail<'a>
impl<'a> Send for Thumbnail<'a>
impl<'a> Sync for Thumbnail<'a>
impl<'a> Unpin for Thumbnail<'a>
impl<'a> UnwindSafe for Thumbnail<'a>
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