pub struct AudioContent {
pub data: String,
pub mime_type: String,
pub annotations: Option<Annotations>,
pub extensions: Extensions,
}Expand description
The audio block, 2025-03-26 and later.
Structurally identical to ImageContent. It is a separate type rather
than a shared BinaryContent with a flag, because the feature it requires
differs and the IR’s job is to make that difference impossible to miss.
Fields§
§data: StringBase64 payload.
mime_type: StringThe media type.
annotations: Option<Annotations>Optional annotations, 2025-03-26.
extensions: ExtensionsUnmodelled fields.
Implementations§
Source§impl AudioContent
impl AudioContent
Sourcepub fn required_features(&self) -> FeatureSet
pub fn required_features(&self) -> FeatureSet
What this block needs, over and above being audio.
Trait Implementations§
Source§impl Clone for AudioContent
impl Clone for AudioContent
Source§impl Debug for AudioContent
impl Debug for AudioContent
Source§impl PartialEq for AudioContent
impl PartialEq for AudioContent
impl StructuralPartialEq for AudioContent
Auto Trait Implementations§
impl Freeze for AudioContent
impl RefUnwindSafe for AudioContent
impl Send for AudioContent
impl Sync for AudioContent
impl Unpin for AudioContent
impl UnsafeUnpin for AudioContent
impl UnwindSafe for AudioContent
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