pub struct ItemContent {
pub type: ItemContentType,
pub text: Option<String>,
pub audio: Option<String>,
pub transcript: Option<String>,
}
Available on crate feature
realtime
only.Fields§
§type: ItemContentType
The content type (“input_text”, “input_audio”, “text”, “audio”).
text: Option<String>
The text content.
audio: Option<String>
Base64-encoded audio bytes.
transcript: Option<String>
The transcript of the audio.
Trait Implementations§
Source§impl Clone for ItemContent
impl Clone for ItemContent
Source§fn clone(&self) -> ItemContent
fn clone(&self) -> ItemContent
Returns a copy 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 ItemContent
impl Debug for ItemContent
Source§impl<'de> Deserialize<'de> for ItemContent
impl<'de> Deserialize<'de> for ItemContent
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
Auto Trait Implementations§
impl Freeze for ItemContent
impl RefUnwindSafe for ItemContent
impl Send for ItemContent
impl Sync for ItemContent
impl Unpin for ItemContent
impl UnwindSafe for ItemContent
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