pub struct CreateUserInput {
pub username: String,
pub email: String,
pub password_hash: String,
pub role: UserRole,
pub referrer_id: Option<Uuid>,
}Expand description
Input type for creating a user.
Fields§
§username: String§email: String§password_hash: String§role: UserRole§referrer_id: Option<Uuid>Implementations§
Trait Implementations§
Source§impl Clone for CreateUserInput
impl Clone for CreateUserInput
Source§fn clone(&self) -> CreateUserInput
fn clone(&self) -> CreateUserInput
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CreateUserInput
impl RefUnwindSafe for CreateUserInput
impl Send for CreateUserInput
impl Sync for CreateUserInput
impl Unpin for CreateUserInput
impl UnwindSafe for CreateUserInput
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