Struct db_core::UpdateEmail
source · pub struct UpdateEmail<'a> {
pub username: &'a str,
pub new_email: &'a str,
}
Expand description
data required to update them email of a user
Fields§
§username: &'a str
username of the user
new_email: &'a str
new email address of the user
Trait Implementations§
source§impl<'a> Clone for UpdateEmail<'a>
impl<'a> Clone for UpdateEmail<'a>
source§fn clone(&self) -> UpdateEmail<'a>
fn clone(&self) -> UpdateEmail<'a>
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<'a> Debug for UpdateEmail<'a>
impl<'a> Debug for UpdateEmail<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for UpdateEmail<'a>
impl<'de: 'a, 'a> Deserialize<'de> for UpdateEmail<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> PartialEq<UpdateEmail<'a>> for UpdateEmail<'a>
impl<'a> PartialEq<UpdateEmail<'a>> for UpdateEmail<'a>
source§fn eq(&self, other: &UpdateEmail<'a>) -> bool
fn eq(&self, other: &UpdateEmail<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.