pub struct MediaContent {
pub content_type: String,
pub data: Vec<u8>,
}Expand description
Content type and raw bytes for media.
Fields§
§content_type: StringMIME content type (e.g. “image/png”).
data: Vec<u8>Raw bytes of the media content.
Trait Implementations§
Source§impl Clone for MediaContent
impl Clone for MediaContent
Source§fn clone(&self) -> MediaContent
fn clone(&self) -> MediaContent
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for MediaContent
impl RefUnwindSafe for MediaContent
impl Send for MediaContent
impl Sync for MediaContent
impl Unpin for MediaContent
impl UnsafeUnpin for MediaContent
impl UnwindSafe for MediaContent
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