Skip to main content

UpdateUserRequest

Struct UpdateUserRequest 

Source
pub struct UpdateUserRequest {
Show 17 fields pub email: Option<String>, pub email_verified: Option<bool>, pub verify_email: Option<bool>, pub phone_number: Option<String>, pub phone_verified: Option<bool>, pub name: Option<String>, pub given_name: Option<String>, pub family_name: Option<String>, pub nickname: Option<String>, pub picture: Option<String>, pub username: Option<String>, pub password: Option<String>, pub verify_password: Option<bool>, pub blocked: Option<bool>, pub connection: Option<String>, pub user_metadata: Option<Value>, pub app_metadata: Option<Value>,
}
Expand description

Fields accepted by Auth0 PATCH /api/v2/users/{id}. All fields are optional — only non-None fields are serialized.

Fields§

§email: Option<String>§email_verified: Option<bool>§verify_email: Option<bool>§phone_number: Option<String>§phone_verified: Option<bool>§name: Option<String>§given_name: Option<String>§family_name: Option<String>§nickname: Option<String>§picture: Option<String>§username: Option<String>§password: Option<String>§verify_password: Option<bool>§blocked: Option<bool>§connection: Option<String>§user_metadata: Option<Value>§app_metadata: Option<Value>

Implementations§

Source§

impl UpdateUserRequest

Source

pub fn new() -> Self

Creates a new empty UpdateUserRequest with all fields set to None.

After construction, set the fields you want to update directly on the struct. Only fields set to Some(...) are sent to Auth0 — the rest are omitted.

§Fields
FieldTypeDescription
emailOption<String>New email address for the user
email_verifiedOption<bool>Whether the email has been verified
verify_emailOption<bool>If true, sends a verification email after update
phone_numberOption<String>Phone number in E.164 format (e.g. +15551234567)
phone_verifiedOption<bool>Whether the phone number has been verified
nameOption<String>Full display name
given_nameOption<String>First name
family_nameOption<String>Last name
nicknameOption<String>Preferred short name
pictureOption<String>URL of the user’s profile picture
usernameOption<String>Username (only for connections that support it)
passwordOption<String>New password (only for database connections)
verify_passwordOption<bool>If true, sends a password-change confirmation email
blockedOption<bool>If true, the user is blocked from logging in
connectionOption<String>Connection name the update applies to
user_metadataOption<Value>Arbitrary JSON object editable by the user
app_metadataOption<Value>Arbitrary JSON object editable only by the application
§Example
use auth0_integration::models::UpdateUserRequest;

let req = UpdateUserRequest::new();
// req.name = Some("Jane Doe".to_string());
// req.blocked = Some(false);

Trait Implementations§

Source§

impl Default for UpdateUserRequest

Source§

fn default() -> UpdateUserRequest

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for UpdateUserRequest

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for UpdateUserRequest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,