pub enum Invalidity {
ContainsLinebreak,
Empty,
}Expand description
Enumerates the ways a field may be invalid.
Variants§
Trait Implementations§
Source§impl Clone for Invalidity
impl Clone for Invalidity
Source§fn clone(&self) -> Invalidity
fn clone(&self) -> Invalidity
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 Invalidity
impl Debug for Invalidity
Source§impl Display for Invalidity
impl Display for Invalidity
Source§impl Error for Invalidity
impl Error for Invalidity
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl Ord for Invalidity
impl Ord for Invalidity
Source§fn cmp(&self, other: &Invalidity) -> Ordering
fn cmp(&self, other: &Invalidity) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Invalidity
impl PartialEq for Invalidity
Source§impl PartialOrd for Invalidity
impl PartialOrd for Invalidity
impl Copy for Invalidity
impl Eq for Invalidity
impl StructuralPartialEq for Invalidity
Auto Trait Implementations§
impl Freeze for Invalidity
impl RefUnwindSafe for Invalidity
impl Send for Invalidity
impl Sync for Invalidity
impl Unpin for Invalidity
impl UnwindSafe for Invalidity
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