pub struct RealtimeConversationItemContent {
pub audio: Option<String>,
pub id: Option<String>,
pub text: Option<String>,
pub transcript: Option<String>,
pub _type: Option<String>,
}
Fields§
§audio: Option<String>
Base64-encoded audio bytes, used for input_audio
content type.
id: Option<String>
ID of a previous conversation item to reference (for item_reference
content types in response.create
events). These can reference both client and server created items.
text: Option<String>
The text content, used for input_text
and text
content types.
transcript: Option<String>
The transcript of the audio, used for input_audio
content type.
_type: Option<String>
The content type (input_text
, input_audio
, item_reference
, text
).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RealtimeConversationItemContent
impl<'de> Deserialize<'de> for RealtimeConversationItemContent
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 RealtimeConversationItemContent
impl RefUnwindSafe for RealtimeConversationItemContent
impl Send for RealtimeConversationItemContent
impl Sync for RealtimeConversationItemContent
impl Unpin for RealtimeConversationItemContent
impl UnwindSafe for RealtimeConversationItemContent
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