pub struct ProblemDetails {
pub code: Option<String>,
pub message: Option<String>,
}Expand description
ProblemDetails : Description of an error happening during processing of the request
Fields§
§code: Option<String>An error code describing the error
message: Option<String>User friendly error message about the error
Implementations§
Source§impl ProblemDetails
impl ProblemDetails
Sourcepub fn new() -> ProblemDetails
pub fn new() -> ProblemDetails
Description of an error happening during processing of the request
Trait Implementations§
Source§impl Clone for ProblemDetails
impl Clone for ProblemDetails
Source§fn clone(&self) -> ProblemDetails
fn clone(&self) -> ProblemDetails
Returns a duplicate 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 ProblemDetails
impl Debug for ProblemDetails
Source§impl Default for ProblemDetails
impl Default for ProblemDetails
Source§fn default() -> ProblemDetails
fn default() -> ProblemDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProblemDetails
impl<'de> Deserialize<'de> for ProblemDetails
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 ProblemDetails
impl PartialEq for ProblemDetails
Source§impl Serialize for ProblemDetails
impl Serialize for ProblemDetails
impl StructuralPartialEq for ProblemDetails
Auto Trait Implementations§
impl Freeze for ProblemDetails
impl RefUnwindSafe for ProblemDetails
impl Send for ProblemDetails
impl Sync for ProblemDetails
impl Unpin for ProblemDetails
impl UnwindSafe for ProblemDetails
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