pub struct ValidationError { /* private fields */ }
Expand description
Implementations§
§impl ValidationError
impl ValidationError
pub fn new(e: impl Error + 'static) -> ValidationError
pub fn new(e: impl Error + 'static) -> ValidationError
Create a new ValidationError
with the given error type.
Trait Implementations§
§impl Clone for ValidationError
impl Clone for ValidationError
§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Data for ValidationError
impl Data for ValidationError
§fn same(&self, other: &ValidationError) -> bool
fn same(&self, other: &ValidationError) -> bool
Determine whether two values are the same. Read more
§impl Debug for ValidationError
impl Debug for ValidationError
§impl Display for ValidationError
impl Display for ValidationError
§impl Error for ValidationError
impl Error for ValidationError
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.