pub struct AAuthError {
pub status: StatusCode,
pub error: String,
pub detail: String,
pub headers: Vec<(&'static str, String)>,
}Expand description
An AAuth error, answered as application/problem+json.
Fields§
§status: StatusCodeThe HTTP status.
error: StringThe error code, such as mission_not_found.
detail: StringA human-readable explanation.
headers: Vec<(&'static str, String)>Headers the response carries, such as Signature-Error.
Implementations§
Source§impl AAuthError
impl AAuthError
Trait Implementations§
Source§impl Clone for AAuthError
impl Clone for AAuthError
Source§impl Debug for AAuthError
impl Debug for AAuthError
Source§impl Display for AAuthError
impl Display for AAuthError
Source§impl Error for AAuthError
impl Error for AAuthError
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<StoreError> for AAuthError
impl From<StoreError> for AAuthError
Source§fn from(error: StoreError) -> Self
fn from(error: StoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AAuthError
impl RefUnwindSafe for AAuthError
impl Send for AAuthError
impl Sync for AAuthError
impl Unpin for AAuthError
impl UnsafeUnpin for AAuthError
impl UnwindSafe for AAuthError
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