pub struct Problem {
pub loc: Vec<Loc>,
pub msg: String,
pub kind: &'static str,
pub input: Value,
}Expand description
One validation problem, in the shape FastAPI reports it.
Fields§
§loc: Vec<Loc>Where the problem is, starting with body.
msg: StringA sentence for the person reading it.
kind: &'static strA short machine readable kind, such as missing or too_short.
input: ValueThe value that was rejected, or null when the field was missing.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Problem
Auto Trait Implementations§
impl Freeze for Problem
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnsafeUnpin 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