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