pub struct StatusDetails {
pub type: Option<Type>,
pub reason: Option<Reason>,
pub error: Option<Error>,
}
Expand description
Additional details about the status.
Fields§
§type: Option<Type>
The type of error that caused the response to fail, corresponding
with the status
field (completed
, cancelled
, incomplete
,
failed
).
reason: Option<Reason>
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<Error>
A description of the error that caused the response to fail,
populated when the status
is failed
.
Implementations§
Source§impl StatusDetails
impl StatusDetails
Trait Implementations§
Source§impl Clone for StatusDetails
impl Clone for StatusDetails
Source§fn clone(&self) -> StatusDetails
fn clone(&self) -> StatusDetails
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 StatusDetails
impl Debug for StatusDetails
Source§impl Default for StatusDetails
impl Default for StatusDetails
Source§fn default() -> StatusDetails
fn default() -> StatusDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StatusDetails
impl<'de> Deserialize<'de> for StatusDetails
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 StatusDetails
impl PartialEq for StatusDetails
Source§impl Serialize for StatusDetails
impl Serialize for StatusDetails
impl StructuralPartialEq for StatusDetails
Auto Trait Implementations§
impl Freeze for StatusDetails
impl RefUnwindSafe for StatusDetails
impl Send for StatusDetails
impl Sync for StatusDetails
impl Unpin for StatusDetails
impl UnwindSafe for StatusDetails
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