pub struct ConversationContent {
pub content_type: ConversationContentType,
pub text: Option<String>,
pub audio: Option<String>,
pub transcript: Option<String>,
}Expand description
Content in a conversation item.
Fields§
§content_type: ConversationContentTypeContent type.
text: Option<String>Text content.
audio: Option<String>Audio content (base64).
transcript: Option<String>Transcript.
Trait Implementations§
Source§impl Clone for ConversationContent
impl Clone for ConversationContent
Source§fn clone(&self) -> ConversationContent
fn clone(&self) -> ConversationContent
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 ConversationContent
impl Debug for ConversationContent
Source§impl<'de> Deserialize<'de> for ConversationContent
impl<'de> Deserialize<'de> for ConversationContent
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 ConversationContent
impl RefUnwindSafe for ConversationContent
impl Send for ConversationContent
impl Sync for ConversationContent
impl Unpin for ConversationContent
impl UnsafeUnpin for ConversationContent
impl UnwindSafe for ConversationContent
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