pub struct ApiFailure {
pub status: u16,
pub code: String,
pub message: String,
pub request_id: String,
}Expand description
Stable server-declared error received from /v1.
Fields§
§status: u16HTTP status code.
code: StringStable machine-readable error code.
message: StringBounded server diagnostic.
request_id: StringUUID matching the response header.
Trait Implementations§
Source§impl Clone for ApiFailure
impl Clone for ApiFailure
Source§fn clone(&self) -> ApiFailure
fn clone(&self) -> ApiFailure
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 ApiFailure
impl Debug for ApiFailure
Source§impl Display for ApiFailure
impl Display for ApiFailure
impl Eq for ApiFailure
Source§impl Error for ApiFailure
impl Error for ApiFailure
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ApiFailure> for ClientError
impl From<ApiFailure> for ClientError
Source§fn from(source: ApiFailure) -> Self
fn from(source: ApiFailure) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ApiFailure
impl PartialEq for ApiFailure
impl StructuralPartialEq for ApiFailure
Auto Trait Implementations§
impl Freeze for ApiFailure
impl RefUnwindSafe for ApiFailure
impl Send for ApiFailure
impl Sync for ApiFailure
impl Unpin for ApiFailure
impl UnsafeUnpin for ApiFailure
impl UnwindSafe for ApiFailure
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