Struct matrix_sdk_base::media::MediaThumbnailSize
source · [−]pub struct MediaThumbnailSize {
pub method: Method,
pub width: UInt,
pub height: UInt,
}Expand description
The requested size of a media thumbnail.
Fields
method: MethodThe desired resizing method.
width: UIntThe desired width of the thumbnail. The actual thumbnail may not match the size specified.
height: UIntThe desired height of the thumbnail. The actual thumbnail may not match the size specified.
Trait Implementations
sourceimpl Clone for MediaThumbnailSize
impl Clone for MediaThumbnailSize
sourcefn clone(&self) -> MediaThumbnailSize
fn clone(&self) -> MediaThumbnailSize
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for MediaThumbnailSize
impl Debug for MediaThumbnailSize
sourceimpl UniqueKey for MediaThumbnailSize
impl UniqueKey for MediaThumbnailSize
sourcefn unique_key(&self) -> String
fn unique_key(&self) -> String
A string that uniquely identifies
Self compared to other values of
the same type. Read moreAuto Trait Implementations
impl RefUnwindSafe for MediaThumbnailSize
impl Send for MediaThumbnailSize
impl Sync for MediaThumbnailSize
impl Unpin for MediaThumbnailSize
impl UnwindSafe for MediaThumbnailSize
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