Struct clust::ValidationError
source · pub struct ValidationError<T>where
T: Display,{
pub _type: String,
pub expected: String,
pub actual: T,
}
Expand description
The error of the validation.
Fields§
§_type: String
The type of the validation target.
expected: String
The expected value message.
actual: T
The actual value.
Trait Implementations§
source§impl<T> Clone for ValidationError<T>
impl<T> Clone for ValidationError<T>
source§fn clone(&self) -> ValidationError<T>
fn clone(&self) -> ValidationError<T>
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 moresource§impl<T> Debug for ValidationError<T>
impl<T> Debug for ValidationError<T>
source§impl<T> Display for ValidationError<T>where
T: Display,
impl<T> Display for ValidationError<T>where
T: Display,
source§impl<T> Error for ValidationError<T>
impl<T> Error for ValidationError<T>
1.30.0 · source§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<T> Freeze for ValidationError<T>where
T: Freeze,
impl<T> RefUnwindSafe for ValidationError<T>where
T: RefUnwindSafe,
impl<T> Send for ValidationError<T>where
T: Send,
impl<T> Sync for ValidationError<T>where
T: Sync,
impl<T> Unpin for ValidationError<T>where
T: Unpin,
impl<T> UnwindSafe for ValidationError<T>where
T: UnwindSafe,
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