pub struct DfnsError {
pub http_status: u16,
pub message: String,
pub context: Option<Value>,
}
Fields§
§http_status: u16
§message: String
§context: Option<Value>
Implementations§
Trait Implementations§
Source§impl Error for DfnsError
impl Error for DfnsError
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<Error> for DfnsError
impl From<Error> for DfnsError
Source§fn from(err: ReqwestError) -> Self
fn from(err: ReqwestError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for DfnsError
impl From<InvalidHeaderValue> for DfnsError
Source§fn from(err: InvalidHeaderValue) -> Self
fn from(err: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for DfnsError
impl From<ParseError> for DfnsError
Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<PolicyPendingError> for DfnsError
impl From<PolicyPendingError> for DfnsError
Source§fn from(err: PolicyPendingError) -> Self
fn from(err: PolicyPendingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DfnsError
impl RefUnwindSafe for DfnsError
impl Send for DfnsError
impl Sync for DfnsError
impl Unpin for DfnsError
impl UnwindSafe for DfnsError
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