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>
Methods
impl ValidationError
[src]
fn new(code: &'static str) -> ValidationError
[src]
fn add_param<T: Serialize>(&mut self, name: Cow<'static, str>, val: &T)
[src]
Trait Implementations
impl Debug for ValidationError
[src]
impl PartialEq for ValidationError
[src]
fn eq(&self, __arg_0: &ValidationError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ValidationError) -> bool
[src]
This method tests for !=
.
impl Clone for ValidationError
[src]
fn clone(&self) -> ValidationError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Display for ValidationError
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more