Struct MediaChunk
pub struct MediaChunk {
pub mime_type: String,
pub data: String,
}Expand description
A single chunk of media data (audio). Deprecated — use Blob in audio field.
Fields§
§mime_type: StringMIME type of the media (e.g. "audio/pcm").
data: StringBase64-encoded media data.
Trait Implementations§
§impl Clone for MediaChunk
impl Clone for MediaChunk
§fn clone(&self) -> MediaChunk
fn clone(&self) -> MediaChunk
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 more§impl Debug for MediaChunk
impl Debug for MediaChunk
§impl Serialize for MediaChunk
impl Serialize for MediaChunk
§fn 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 Freeze for MediaChunk
impl RefUnwindSafe for MediaChunk
impl Send for MediaChunk
impl Sync for MediaChunk
impl Unpin for MediaChunk
impl UnwindSafe for MediaChunk
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