pub struct UserEmail(/* private fields */);
Implementations§
Source§impl UserEmail
impl UserEmail
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a new UserEmail from a static reference
Sourcepub fn into_boxed_ref(self) -> Box<UserEmailRef>
pub fn into_boxed_ref(self) -> Box<UserEmailRef>
Converts this UserEmail
into a Box<UserEmailRef>
This will drop any excess capacity.
Methods from Deref<Target = UserEmailRef>§
Trait Implementations§
Source§impl AsRef<UserEmailRef> for UserEmail
impl AsRef<UserEmailRef> for UserEmail
Source§fn as_ref(&self) -> &UserEmailRef
fn as_ref(&self) -> &UserEmailRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<UserEmailRef> for UserEmail
impl Borrow<UserEmailRef> for UserEmail
Source§fn borrow(&self) -> &UserEmailRef
fn borrow(&self) -> &UserEmailRef
Immutably borrows from an owned value. Read more
Source§impl<'de> Deserialize<'de> for UserEmail
impl<'de> Deserialize<'de> for UserEmail
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&UserEmailRef> for UserEmail
impl From<&UserEmailRef> for UserEmail
Source§fn from(s: &UserEmailRef) -> Self
fn from(s: &UserEmailRef) -> Self
Converts to this type from the input type.
Source§impl From<Box<UserEmailRef>> for UserEmail
impl From<Box<UserEmailRef>> for UserEmail
Source§fn from(r: Box<UserEmailRef>) -> Self
fn from(r: Box<UserEmailRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, UserEmailRef>> for UserEmail
impl<'a> From<Cow<'a, UserEmailRef>> for UserEmail
Source§fn from(r: Cow<'a, UserEmailRef>) -> Self
fn from(r: Cow<'a, UserEmailRef>) -> Self
Converts to this type from the input type.
Source§impl Ord for UserEmail
impl Ord for UserEmail
Source§impl PartialEq<&UserEmailRef> for UserEmail
impl PartialEq<&UserEmailRef> for UserEmail
Source§impl PartialEq<UserEmail> for &UserEmailRef
impl PartialEq<UserEmail> for &UserEmailRef
Source§impl PartialEq<UserEmail> for UserEmailRef
impl PartialEq<UserEmail> for UserEmailRef
Source§impl PartialEq<UserEmailRef> for UserEmail
impl PartialEq<UserEmailRef> for UserEmail
Source§impl PartialOrd for UserEmail
impl PartialOrd for UserEmail
impl Eq for UserEmail
impl StructuralPartialEq for UserEmail
Auto Trait Implementations§
impl Freeze for UserEmail
impl RefUnwindSafe for UserEmail
impl Send for UserEmail
impl Sync for UserEmail
impl Unpin for UserEmail
impl UnwindSafe for UserEmail
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.