Struct matrix_sdk_base::media::MediaRequest
source · pub struct MediaRequest {
pub source: MediaSource,
pub format: MediaFormat,
}
Expand description
A request for media data.
Fields§
§source: MediaSource
The source of the media file.
format: MediaFormat
The requested format of the media data.
Implementations§
Trait Implementations§
source§impl Clone for MediaRequest
impl Clone for MediaRequest
source§fn clone(&self) -> MediaRequest
fn clone(&self) -> MediaRequest
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 MediaRequest
impl Debug for MediaRequest
source§impl UniqueKey for MediaRequest
impl UniqueKey for MediaRequest
source§fn unique_key(&self) -> String
fn unique_key(&self) -> String
A string that uniquely identifies
Self
compared to other values of
the same type.Auto Trait Implementations§
impl RefUnwindSafe for MediaRequest
impl Send for MediaRequest
impl Sync for MediaRequest
impl Unpin for MediaRequest
impl UnwindSafe for MediaRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more