pub struct CreateUserInput {
pub id: Option<String>,
pub name: String,
pub email: String,
pub email_verified: bool,
pub image: Option<String>,
pub username: Option<String>,
pub display_username: Option<String>,
pub additional_fields: DbRecord,
}Fields§
§id: Option<String>§name: String§email: String§email_verified: bool§image: Option<String>§username: Option<String>§display_username: Option<String>§additional_fields: DbRecordImplementations§
Source§impl CreateUserInput
impl CreateUserInput
pub fn new(name: impl Into<String>, email: impl Into<String>) -> Self
pub fn id(self, id: impl Into<String>) -> Self
pub fn email_verified(self, email_verified: bool) -> Self
pub fn image(self, image: impl Into<String>) -> Self
pub fn username(self, username: impl Into<String>) -> Self
pub fn display_username(self, display_username: impl Into<String>) -> Self
pub fn additional_fields(self, additional_fields: DbRecord) -> Self
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateUserInput
impl Debug for CreateUserInput
Source§impl PartialEq for CreateUserInput
impl PartialEq for CreateUserInput
Source§fn eq(&self, other: &CreateUserInput) -> bool
fn eq(&self, other: &CreateUserInput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateUserInput
Auto Trait Implementations§
impl Freeze for CreateUserInput
impl RefUnwindSafe for CreateUserInput
impl Send for CreateUserInput
impl Sync for CreateUserInput
impl Unpin for CreateUserInput
impl UnsafeUnpin 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