pub struct SignupRequest<'a> {
pub username: &'a str,
pub password: &'a str,
pub email: Option<&'a str>,
}Expand description
Represents the data required to sign up a new user.
This struct is typically serialized and sent as the body of a signup request.
It includes username, password, and an optional email.
Additional fields can be included by using a more generic type like ParseObject or HashMap<String, Value>
with the signup method if the server is configured to accept them.
Fields§
§username: &'a str§password: &'a str§email: Option<&'a str>Trait Implementations§
Source§impl<'a> Debug for SignupRequest<'a>
impl<'a> Debug for SignupRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for SignupRequest<'a>
impl<'a> RefUnwindSafe for SignupRequest<'a>
impl<'a> Send for SignupRequest<'a>
impl<'a> Sync for SignupRequest<'a>
impl<'a> Unpin for SignupRequest<'a>
impl<'a> UnwindSafe for SignupRequest<'a>
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