Struct fractal_dto::v1::user::UpdateUserDTO [−][src]
pub struct UpdateUserDTO { pub new_username: Option<String>, pub old_password: Option<String>, pub new_password: Option<String>, pub new_first: Option<String>, pub new_last: Option<String>, pub new_address: Option<Address>, pub new_birthday: Option<NaiveDate>, pub new_phone: Option<String>, pub new_email: Option<String>, pub new_image: Option<String>, }
Struct used to update user information
Fields
new_username: Option<String>
The users new username
old_password: Option<String>
The users old password
new_password: Option<String>
The users new password
new_first: Option<String>
The users new first name
new_last: Option<String>
The users new last name
new_address: Option<Address>
The users new address
new_birthday: Option<NaiveDate>
The users new birthday
new_phone: Option<String>
The users new phone #
new_email: Option<String>
The users new email
new_image: Option<String>
The users new profile picture
Trait Implementations
impl Clone for UpdateUserDTO
[src]
impl Clone for UpdateUserDTO
fn clone(&self) -> UpdateUserDTO
[src]
fn clone(&self) -> UpdateUserDTO
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Encodable for UpdateUserDTO
[src]
impl Encodable for UpdateUserDTO
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
Serialize a value using an Encoder
.
impl Decodable for UpdateUserDTO
[src]
impl Decodable for UpdateUserDTO
fn decode<__D: Decoder>(d: &mut __D) -> Result<UpdateUserDTO, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<UpdateUserDTO, __D::Error>
Deserialize a value using a Decoder
.
impl DTO for UpdateUserDTO
[src]
impl DTO for UpdateUserDTO
Auto Trait Implementations
impl Send for UpdateUserDTO
impl Send for UpdateUserDTO
impl Sync for UpdateUserDTO
impl Sync for UpdateUserDTO