pub struct ResponsesError {
pub message: String,
pub kind: Option<String>,
pub code: Option<String>,
}Expand description
The inline error body carried on a failed ResponsesResponse (status:"failed");
the proto’s ErrorBody. Distinct from an HTTP error envelope (which surfaces as
crate::Error::Api) and from the streaming "error" event.
Fields§
§message: String§kind: Option<String>§code: Option<String>Trait Implementations§
Source§impl Clone for ResponsesError
impl Clone for ResponsesError
Source§fn clone(&self) -> ResponsesError
fn clone(&self) -> ResponsesError
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 ResponsesError
impl Debug for ResponsesError
Source§impl<'de> Deserialize<'de> for ResponsesError
impl<'de> Deserialize<'de> for ResponsesError
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 ResponsesError
impl PartialEq for ResponsesError
Source§impl Serialize for ResponsesError
impl Serialize for ResponsesError
impl StructuralPartialEq for ResponsesError
Auto Trait Implementations§
impl Freeze for ResponsesError
impl RefUnwindSafe for ResponsesError
impl Send for ResponsesError
impl Sync for ResponsesError
impl Unpin for ResponsesError
impl UnsafeUnpin for ResponsesError
impl UnwindSafe for ResponsesError
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