pub struct ContentPartPart {
pub audio: Option<String>,
pub text: Option<String>,
pub transcript: Option<String>,
pub type_: Option<ContentPartPartType>,
}Expand description
The content part that was added.
Fields§
§audio: Option<String>Base64-encoded audio data (if type is “audio”).
text: Option<String>The text content (if type is “text”).
transcript: Option<String>The transcript of the audio (if type is “audio”).
type_: Option<ContentPartPartType>The content type (“text”, “audio”).
Trait Implementations§
Source§impl Clone for ContentPartPart
impl Clone for ContentPartPart
Source§fn clone(&self) -> ContentPartPart
fn clone(&self) -> ContentPartPart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContentPartPart
impl Debug for ContentPartPart
Source§impl<'de> Deserialize<'de> for ContentPartPart
impl<'de> Deserialize<'de> for ContentPartPart
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 ContentPartPart
impl RefUnwindSafe for ContentPartPart
impl Send for ContentPartPart
impl Sync for ContentPartPart
impl Unpin for ContentPartPart
impl UnsafeUnpin for ContentPartPart
impl UnwindSafe for ContentPartPart
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