Struct validator::ValidationError [−][src]
pub struct ValidationError { pub code: Cow<'static, str>, pub message: Option<Cow<'static, str>>, pub params: HashMap<Cow<'static, str>, Value>, }
Fields
code: Cow<'static, str>
message: Option<Cow<'static, str>>
params: HashMap<Cow<'static, str>, Value>
Implementations
Trait Implementations
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
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnwindSafe for ValidationError
Blanket Implementations
Mutably borrows from an owned value. Read more