pub struct ApiProblem {
pub _type: String,
pub detail: Option<String>,
pub subproblems: Option<Vec<ApiSubproblem>>,
}
Fields§
§_type: String
§detail: Option<String>
§subproblems: Option<Vec<ApiSubproblem>>
Implementations§
Source§impl ApiProblem
impl ApiProblem
pub fn is_bad_nonce(&self) -> bool
pub fn is_jwt_verification_error(&self) -> bool
Trait Implementations§
Source§impl Clone for ApiProblem
impl Clone for ApiProblem
Source§fn clone(&self) -> ApiProblem
fn clone(&self) -> ApiProblem
Returns a copy 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 ApiProblem
impl Debug for ApiProblem
Source§impl Default for ApiProblem
impl Default for ApiProblem
Source§fn default() -> ApiProblem
fn default() -> ApiProblem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiProblem
impl<'de> Deserialize<'de> for ApiProblem
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 Display for ApiProblem
impl Display for ApiProblem
Source§impl From<ApiProblem> for Error
impl From<ApiProblem> for Error
Source§fn from(x: ApiProblem) -> Error
fn from(x: ApiProblem) -> Error
Converts to this type from the input type.
Source§impl PartialEq for ApiProblem
impl PartialEq for ApiProblem
Source§impl Serialize for ApiProblem
impl Serialize for ApiProblem
impl Eq for ApiProblem
impl StructuralPartialEq for ApiProblem
Auto Trait Implementations§
impl Freeze for ApiProblem
impl RefUnwindSafe for ApiProblem
impl Send for ApiProblem
impl Sync for ApiProblem
impl Unpin for ApiProblem
impl UnwindSafe for ApiProblem
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