pub struct RealtimeServerEventResponseContentPartDonePart {
pub type: Option<RealtimeServerEventResponseContentPartDonePartType>,
pub text: Option<String>,
pub audio: Option<String>,
pub transcript: Option<String>,
}
Expand description
The content part that is done.
Fields§
§type: Option<RealtimeServerEventResponseContentPartDonePartType>
The content type (“text”, “audio”).
text: Option<String>
The text content (if type is “text”).
audio: Option<String>
Base64-encoded audio data (if type is “audio”).
transcript: Option<String>
The transcript of the audio (if type is “audio”).
Implementations§
Source§impl RealtimeServerEventResponseContentPartDonePart
impl RealtimeServerEventResponseContentPartDonePart
Sourcepub fn builder() -> RealtimeServerEventResponseContentPartDonePartBuilder<((), (), (), ())>
pub fn builder() -> RealtimeServerEventResponseContentPartDonePartBuilder<((), (), (), ())>
Create a builder for building RealtimeServerEventResponseContentPartDonePart
.
On the builder, call .r#type(...)
(optional), .text(...)
(optional), .audio(...)
(optional), .transcript(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeServerEventResponseContentPartDonePart
.
Trait Implementations§
Source§impl Clone for RealtimeServerEventResponseContentPartDonePart
impl Clone for RealtimeServerEventResponseContentPartDonePart
Source§fn clone(&self) -> RealtimeServerEventResponseContentPartDonePart
fn clone(&self) -> RealtimeServerEventResponseContentPartDonePart
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 Default for RealtimeServerEventResponseContentPartDonePart
impl Default for RealtimeServerEventResponseContentPartDonePart
Source§fn default() -> RealtimeServerEventResponseContentPartDonePart
fn default() -> RealtimeServerEventResponseContentPartDonePart
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RealtimeServerEventResponseContentPartDonePart
impl<'de> Deserialize<'de> for RealtimeServerEventResponseContentPartDonePart
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 RealtimeServerEventResponseContentPartDonePart
impl PartialEq for RealtimeServerEventResponseContentPartDonePart
Source§fn eq(&self, other: &RealtimeServerEventResponseContentPartDonePart) -> bool
fn eq(&self, other: &RealtimeServerEventResponseContentPartDonePart) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeServerEventResponseContentPartDonePart
Auto Trait Implementations§
impl Freeze for RealtimeServerEventResponseContentPartDonePart
impl RefUnwindSafe for RealtimeServerEventResponseContentPartDonePart
impl Send for RealtimeServerEventResponseContentPartDonePart
impl Sync for RealtimeServerEventResponseContentPartDonePart
impl Unpin for RealtimeServerEventResponseContentPartDonePart
impl UnwindSafe for RealtimeServerEventResponseContentPartDonePart
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