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

The users new username

The users old password

The users new password

The users new first name

The users new last name

The users new address

The users new birthday

The users new phone #

The users new email

The users new profile picture

Trait Implementations

impl Clone for UpdateUserDTO
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Encodable for UpdateUserDTO
[src]

Serialize a value using an Encoder.

impl Decodable for UpdateUserDTO
[src]

Deserialize a value using a Decoder.

impl DTO for UpdateUserDTO
[src]

Auto Trait Implementations