Struct db_sqlx_postgres::dev::UsernameRegisterPayload[][src]

pub struct UsernameRegisterPayload<'a> {
    pub username: &'a str,
    pub password: &'a str,
    pub secret: &'a str,
}
Expand description

payload to register a user with only username

Fields

username: &'a str

username provided during registration

password: &'a str

password of new user

secret: &'a str

a randomly generated secret associated with an account

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.