pub struct RealtimeResponseStatusDetails {
pub type: Option<RealtimeResponseStatusDetailsType>,
pub reason: Option<RealtimeResponseStatusDetailsReason>,
pub error: Option<RealtimeResponseStatusDetailsError>,
}
Expand description
Additional details about the status.
Fields§
§type: Option<RealtimeResponseStatusDetailsType>
The type of error that caused the response to fail, corresponding
with the status
field (completed
, cancelled
, incomplete
,
failed
).
reason: Option<RealtimeResponseStatusDetailsReason>
The reason the Response did not complete. For a cancelled
Response,
one of turn_detected
(the server VAD detected a new start of speech)
or client_cancelled
(the client sent a cancel event). For an
incomplete
Response, one of max_output_tokens
or content_filter
(the server-side safety filter activated and cut off the response).
error: Option<RealtimeResponseStatusDetailsError>
A description of the error that caused the response to fail,
populated when the status
is failed
.
Implementations§
Source§impl RealtimeResponseStatusDetails
impl RealtimeResponseStatusDetails
Sourcepub fn builder() -> RealtimeResponseStatusDetailsBuilder<((), (), ())>
pub fn builder() -> RealtimeResponseStatusDetailsBuilder<((), (), ())>
Create a builder for building RealtimeResponseStatusDetails
.
On the builder, call .r#type(...)
(optional), .reason(...)
(optional), .error(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeResponseStatusDetails
.
Trait Implementations§
Source§impl Clone for RealtimeResponseStatusDetails
impl Clone for RealtimeResponseStatusDetails
Source§fn clone(&self) -> RealtimeResponseStatusDetails
fn clone(&self) -> RealtimeResponseStatusDetails
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for RealtimeResponseStatusDetails
impl Default for RealtimeResponseStatusDetails
Source§fn default() -> RealtimeResponseStatusDetails
fn default() -> RealtimeResponseStatusDetails
Source§impl<'de> Deserialize<'de> for RealtimeResponseStatusDetails
impl<'de> Deserialize<'de> for RealtimeResponseStatusDetails
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>,
Source§impl PartialEq for RealtimeResponseStatusDetails
impl PartialEq for RealtimeResponseStatusDetails
Source§fn eq(&self, other: &RealtimeResponseStatusDetails) -> bool
fn eq(&self, other: &RealtimeResponseStatusDetails) -> bool
self
and other
values to be equal, and is used by ==
.