pub struct AudioContentBlock {
pub block_type: String,
pub id: Option<String>,
pub file_id: Option<String>,
pub mime_type: Option<String>,
pub index: Option<BlockIndex>,
pub url: Option<String>,
pub base64: Option<String>,
pub extras: Option<HashMap<String, Value>>,
}Expand description
Audio data content block.
Fields§
§block_type: StringType of the content block. Always “audio”.
id: Option<String>Content block identifier.
file_id: Option<String>ID of the audio file, e.g., from a file storage system.
mime_type: Option<String>MIME type of the audio. Required for base64.
index: Option<BlockIndex>Index of block in aggregate response. Used during streaming.
url: Option<String>URL of the audio.
base64: Option<String>Data as a base64 string.
extras: Option<HashMap<String, Value>>Provider-specific metadata.
Implementations§
Trait Implementations§
Source§impl Clone for AudioContentBlock
impl Clone for AudioContentBlock
Source§fn clone(&self) -> AudioContentBlock
fn clone(&self) -> AudioContentBlock
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 moreSource§impl Debug for AudioContentBlock
impl Debug for AudioContentBlock
Source§impl Default for AudioContentBlock
impl Default for AudioContentBlock
Source§impl<'de> Deserialize<'de> for AudioContentBlock
impl<'de> Deserialize<'de> for AudioContentBlock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AudioContentBlock
impl PartialEq for AudioContentBlock
Source§impl Serialize for AudioContentBlock
impl Serialize for AudioContentBlock
impl StructuralPartialEq for AudioContentBlock
Auto Trait Implementations§
impl Freeze for AudioContentBlock
impl RefUnwindSafe for AudioContentBlock
impl Send for AudioContentBlock
impl Sync for AudioContentBlock
impl Unpin for AudioContentBlock
impl UnwindSafe for AudioContentBlock
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