pub enum ErrorMessage {
Default,
Custom(String),
}
Expand description
Error message that is displayed to the users when their input is considered not valid by registered validators.
Variants§
Default
No custom message is defined, a standard one defined in the set
RenderConfig
is used instead.
Custom(String)
Custom error message, used instead of the standard one.
Trait Implementations§
Source§impl Clone for ErrorMessage
impl Clone for ErrorMessage
Source§fn clone(&self) -> ErrorMessage
fn clone(&self) -> ErrorMessage
Returns a duplicate 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 Debug for ErrorMessage
impl Debug for ErrorMessage
Source§impl Default for ErrorMessage
impl Default for ErrorMessage
Source§fn default() -> ErrorMessage
fn default() -> ErrorMessage
Returns the “default value” for a type. Read more
Source§impl<T> From<T> for ErrorMessagewhere
T: ToString,
impl<T> From<T> for ErrorMessagewhere
T: ToString,
Source§fn from(msg: T) -> ErrorMessage
fn from(msg: T) -> ErrorMessage
Converts to this type from the input type.
Source§impl PartialEq for ErrorMessage
impl PartialEq for ErrorMessage
impl Eq for ErrorMessage
impl StructuralPartialEq for ErrorMessage
Auto Trait Implementations§
impl Freeze for ErrorMessage
impl RefUnwindSafe for ErrorMessage
impl Send for ErrorMessage
impl Sync for ErrorMessage
impl Unpin for ErrorMessage
impl UnwindSafe for ErrorMessage
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