pub struct EncodedAudio {
pub data: String,
pub mime_type: String,
pub structured: Value,
}Available on crate feature
mcp and non-WebAssembly only.Expand description
A sound the transport sends as an audio content block.
Fields§
§data: StringThe encoded bytes, base64-encoded.
mime_type: StringThe format the bytes are in, as a MIME type.
structured: ValueThe sound’s metadata — its length, rate and channel count — as structured JSON.
Auto Trait Implementations§
impl Forget for EncodedAudio
impl Freeze for EncodedAudio
impl RefUnwindSafe for EncodedAudio
impl Send for EncodedAudio
impl Sync for EncodedAudio
impl Unpin for EncodedAudio
impl UnsafeUnpin for EncodedAudio
impl UnwindSafe for EncodedAudio
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