pub struct SignUpInput {
pub name: String,
pub email: String,
pub password: String,
pub image: Option<String>,
pub username: Option<String>,
pub display_username: Option<String>,
pub remember_me: bool,
pub ip_address: Option<String>,
pub user_agent: Option<String>,
pub additional_user_fields: DbRecord,
pub additional_session_fields: DbRecord,
}Fields§
§name: String§email: String§password: String§image: Option<String>§username: Option<String>§display_username: Option<String>§remember_me: bool§ip_address: Option<String>§user_agent: Option<String>§additional_user_fields: DbRecord§additional_session_fields: DbRecordImplementations§
Source§impl SignUpInput
impl SignUpInput
pub fn new( name: impl Into<String>, email: impl Into<String>, password: impl Into<String>, ) -> 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 remember_me(self, remember_me: bool) -> Self
pub fn ip_address(self, ip_address: impl Into<String>) -> Self
pub fn user_agent(self, user_agent: impl Into<String>) -> Self
pub fn additional_user_fields(self, fields: DbRecord) -> Self
pub fn additional_session_fields(self, fields: DbRecord) -> Self
Trait Implementations§
Source§impl Clone for SignUpInput
impl Clone for SignUpInput
Source§fn clone(&self) -> SignUpInput
fn clone(&self) -> SignUpInput
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 SignUpInput
impl Debug for SignUpInput
Source§impl PartialEq for SignUpInput
impl PartialEq for SignUpInput
Source§fn eq(&self, other: &SignUpInput) -> bool
fn eq(&self, other: &SignUpInput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SignUpInput
Auto Trait Implementations§
impl Freeze for SignUpInput
impl RefUnwindSafe for SignUpInput
impl Send for SignUpInput
impl Sync for SignUpInput
impl Unpin for SignUpInput
impl UnsafeUnpin for SignUpInput
impl UnwindSafe for SignUpInput
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