pub struct Problem {
pub problem_type: String,
pub title: Option<String>,
pub status: Option<Status>,
pub detail: Option<String>,
pub instance: Option<String>,
pub extra: ExtraKv,
}
Fields§
§problem_type: String
§title: Option<String>
§status: Option<Status>
§detail: Option<String>
§instance: Option<String>
§extra: ExtraKv
Implementations§
Source§impl Problem
impl Problem
pub fn new() -> Self
pub fn problem_type(self, problem_type: ProblemType) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Problem
impl<'de> Deserialize<'de> for Problem
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
Auto Trait Implementations§
impl Freeze for Problem
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnwindSafe for Problem
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