pub struct ValidationErrorExample {
pub field: Option<String>,
pub error_type: String,
pub message: String,
pub response: Value,
pub status_code: u16,
}Expand description
Example error response for learning validation error formats
Fields§
§field: Option<String>Field that caused the error (if applicable)
error_type: StringError type
message: StringError message
response: ValueError response body
status_code: u16HTTP status code
Trait Implementations§
Source§impl Clone for ValidationErrorExample
impl Clone for ValidationErrorExample
Source§fn clone(&self) -> ValidationErrorExample
fn clone(&self) -> ValidationErrorExample
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ValidationErrorExample
impl Debug for ValidationErrorExample
Source§impl<'de> Deserialize<'de> for ValidationErrorExample
impl<'de> Deserialize<'de> for ValidationErrorExample
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 ValidationErrorExample
impl RefUnwindSafe for ValidationErrorExample
impl Send for ValidationErrorExample
impl Sync for ValidationErrorExample
impl Unpin for ValidationErrorExample
impl UnsafeUnpin for ValidationErrorExample
impl UnwindSafe for ValidationErrorExample
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