pub struct RealtimeServerEventResponseDone {
pub event_id: String,
pub response: RealtimeResponse,
}
Expand description
Returned when a Response is done streaming. Always emitted, no matter the
final state. The Response object included in the response.done
event will
include all output Items in the Response but will omit the raw audio data.
Fields§
§event_id: String
The unique ID of the server event.
response: RealtimeResponse
Implementations§
Source§impl RealtimeServerEventResponseDone
impl RealtimeServerEventResponseDone
Sourcepub fn builder() -> RealtimeServerEventResponseDoneBuilder<((), ())>
pub fn builder() -> RealtimeServerEventResponseDoneBuilder<((), ())>
Create a builder for building RealtimeServerEventResponseDone
.
On the builder, call .event_id(...)
, .response(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeServerEventResponseDone
.
Trait Implementations§
Source§impl Clone for RealtimeServerEventResponseDone
impl Clone for RealtimeServerEventResponseDone
Source§fn clone(&self) -> RealtimeServerEventResponseDone
fn clone(&self) -> RealtimeServerEventResponseDone
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<'de> Deserialize<'de> for RealtimeServerEventResponseDone
impl<'de> Deserialize<'de> for RealtimeServerEventResponseDone
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 RealtimeServerEventResponseDone
impl PartialEq for RealtimeServerEventResponseDone
Source§fn eq(&self, other: &RealtimeServerEventResponseDone) -> bool
fn eq(&self, other: &RealtimeServerEventResponseDone) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeServerEventResponseDone
Auto Trait Implementations§
impl Freeze for RealtimeServerEventResponseDone
impl RefUnwindSafe for RealtimeServerEventResponseDone
impl Send for RealtimeServerEventResponseDone
impl Sync for RealtimeServerEventResponseDone
impl Unpin for RealtimeServerEventResponseDone
impl UnwindSafe for RealtimeServerEventResponseDone
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