pub struct ErrorExample {
pub method: String,
pub path: String,
pub request: Option<Value>,
pub status: u16,
pub error_response: Value,
pub field: Option<String>,
}Expand description
Error example for learning validation rules
Fields§
§method: StringHTTP method
path: StringRequest path
request: Option<Value>Request body that caused the error
status: u16Error status code
error_response: ValueError response body
field: Option<String>Field that caused the error (if applicable)
Trait Implementations§
Source§impl Clone for ErrorExample
impl Clone for ErrorExample
Source§fn clone(&self) -> ErrorExample
fn clone(&self) -> ErrorExample
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 ErrorExample
impl Debug for ErrorExample
Source§impl<'de> Deserialize<'de> for ErrorExample
impl<'de> Deserialize<'de> for ErrorExample
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorExample, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorExample, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ErrorExample
impl Serialize for ErrorExample
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ErrorExample
impl RefUnwindSafe for ErrorExample
impl Send for ErrorExample
impl Sync for ErrorExample
impl Unpin for ErrorExample
impl UnsafeUnpin for ErrorExample
impl UnwindSafe for ErrorExample
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