pub enum MessageKind {
Max,
Min,
MaxLen,
MinLen,
Blank,
Format,
}Expand description
This enum is used to mark a type of a Message
Variants§
Max
Greater than maximum value, eg. for an int value.
Min
Less than mininum value, eg. for an int value.
MaxLen
Longer than maximum lenghth, eg. for a string value.
MinLen
Shorter than minimum length, eg. for a string value.
Blank
Value required, but missing.
Format
Value not match some format.
Auto Trait Implementations§
impl Freeze for MessageKind
impl RefUnwindSafe for MessageKind
impl Send for MessageKind
impl Sync for MessageKind
impl Unpin for MessageKind
impl UnwindSafe for MessageKind
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