Enum validators::prelude::validators_prelude::EmailError
source · pub enum EmailError {
Invalid,
IPMust,
IPNotAllow,
LocalMust,
LocalNotAllow,
AtLeastTwoLabelsMust,
AtLeastTwoLabelsNotAllow,
CommentNotAllow,
}
Variants
Invalid
the fallback variant
IPMust
may not be valid but it is guaranteed that the domain part is not an IP
IPNotAllow
may not be valid and the domain part seems to be an IP
LocalMust
may not be valid but it is guaranteed that the domain part is not local
LocalNotAllow
may not be valid but it is guaranteed that the domain part is local
AtLeastTwoLabelsMust
may not be valid but it is guaranteed that the domain part has only one label
AtLeastTwoLabelsNotAllow
may not be valid and the domain part seems to has at least two labels
CommentNotAllow
may not be valid and comments seems to exist
Trait Implementations
sourceimpl Clone for EmailError
impl Clone for EmailError
sourcefn clone(&self) -> EmailError
fn clone(&self) -> EmailError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for EmailError
impl Debug for EmailError
sourceimpl Display for EmailError
impl Display for EmailError
sourceimpl Error for EmailError
impl Error for EmailError
1.30.0 · sourcefn 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 · sourcefn 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 EmailError
impl Send for EmailError
impl Sync for EmailError
impl Unpin for EmailError
impl UnwindSafe for EmailError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.