#[repr(u8)]pub enum UsernamePattern {
Email = 1,
Emaillocalpart = 2,
}
Expand description
Pattern used to construct login usernames from email addresses.
Variants§
Email = 1
Whole email is used as username.
Emaillocalpart = 2
Part of address before @
is used as username.
Trait Implementations§
source§impl Clone for UsernamePattern
impl Clone for UsernamePattern
source§fn clone(&self) -> UsernamePattern
fn clone(&self) -> UsernamePattern
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 Debug for UsernamePattern
impl Debug for UsernamePattern
source§impl PartialEq for UsernamePattern
impl PartialEq for UsernamePattern
impl Eq for UsernamePattern
impl StructuralPartialEq for UsernamePattern
Auto Trait Implementations§
impl Freeze for UsernamePattern
impl RefUnwindSafe for UsernamePattern
impl Send for UsernamePattern
impl Sync for UsernamePattern
impl Unpin for UsernamePattern
impl UnwindSafe for UsernamePattern
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.