pub struct CreateUserRequest<'a> {
pub connection: &'a str,
pub email: &'a str,
pub name: &'a str,
}Fields§
§connection: &'a str§email: &'a str§name: &'a strImplementations§
Source§impl<'a> CreateUserRequest<'a>
impl<'a> CreateUserRequest<'a>
Sourcepub fn new(connection: &'a str, email: &'a str, name: &'a str) -> Self
pub fn new(connection: &'a str, email: &'a str, name: &'a str) -> Self
Creates a new CreateUserRequest for Auth0’s POST /api/v2/users endpoint.
§Parameters
| Parameter | Type | Description |
|---|---|---|
connection | &str | The Auth0 connection to create the user in (e.g. "Username-Password-Authentication") |
email | &str | The user’s email address |
name | &str | The user’s full display name |
§Example
use auth0_integration::models::CreateUserRequest;
let req = CreateUserRequest::new(
"Username-Password-Authentication",
"jane@example.com",
"Jane Doe",
);Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CreateUserRequest<'a>
impl<'a> RefUnwindSafe for CreateUserRequest<'a>
impl<'a> Send for CreateUserRequest<'a>
impl<'a> Sync for CreateUserRequest<'a>
impl<'a> Unpin for CreateUserRequest<'a>
impl<'a> UnsafeUnpin for CreateUserRequest<'a>
impl<'a> UnwindSafe for CreateUserRequest<'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