Struct clerk_rs::models::user::User

source ·
pub struct User {
Show 36 fields pub id: Option<String>, pub object: Option<Object>, pub external_id: Option<Option<String>>, pub primary_email_address_id: Option<Option<String>>, pub primary_phone_number_id: Option<Option<String>>, pub primary_web3_wallet_id: Option<Option<String>>, pub username: Option<Option<String>>, pub first_name: Option<Option<String>>, pub last_name: Option<Option<String>>, pub profile_image_url: Option<String>, pub image_url: Option<String>, pub has_image: Option<bool>, pub public_metadata: Option<Value>, pub private_metadata: Option<Option<Value>>, pub unsafe_metadata: Option<Value>, pub gender: Option<Option<String>>, pub birthday: Option<Option<String>>, pub email_addresses: Option<Vec<EmailAddress>>, pub phone_numbers: Option<Vec<PhoneNumber>>, pub web3_wallets: Option<Vec<Web3Wallet>>, pub password_enabled: Option<bool>, pub two_factor_enabled: Option<bool>, pub totp_enabled: Option<bool>, pub backup_code_enabled: Option<bool>, pub external_accounts: Option<Vec<Value>>, pub saml_accounts: Option<Vec<SamlAccount>>, pub last_sign_in_at: Option<Option<i64>>, pub banned: Option<bool>, pub locked: Option<bool>, pub lockout_expires_in_seconds: Option<Option<i64>>, pub verification_attempts_remaining: Option<Option<i64>>, pub updated_at: Option<i64>, pub created_at: Option<i64>, pub delete_self_enabled: Option<bool>, pub create_organization_enabled: Option<bool>, pub last_active_at: Option<Option<i64>>,
}

Fields§

§id: Option<String>§object: Option<Object>

String representing the object’s type. Objects of the same type share the same value.

§external_id: Option<Option<String>>§primary_email_address_id: Option<Option<String>>§primary_phone_number_id: Option<Option<String>>§primary_web3_wallet_id: Option<Option<String>>§username: Option<Option<String>>§first_name: Option<Option<String>>§last_name: Option<Option<String>>§profile_image_url: Option<String>§image_url: Option<String>§has_image: Option<bool>§public_metadata: Option<Value>§private_metadata: Option<Option<Value>>§unsafe_metadata: Option<Value>§gender: Option<Option<String>>§birthday: Option<Option<String>>§email_addresses: Option<Vec<EmailAddress>>§phone_numbers: Option<Vec<PhoneNumber>>§web3_wallets: Option<Vec<Web3Wallet>>§password_enabled: Option<bool>§two_factor_enabled: Option<bool>§totp_enabled: Option<bool>§backup_code_enabled: Option<bool>§external_accounts: Option<Vec<Value>>§saml_accounts: Option<Vec<SamlAccount>>§last_sign_in_at: Option<Option<i64>>

Unix timestamp of last sign-in.

§banned: Option<bool>

Flag to denote whether user is banned or not.

§locked: Option<bool>

Flag to denote whether user is currently locked, i.e. restricted from signing in or not.

§lockout_expires_in_seconds: Option<Option<i64>>

The number of seconds remaining until the lockout period expires for a locked user. A null value for a locked user indicates that lockout never expires.

§verification_attempts_remaining: Option<Option<i64>>

The number of verification attempts remaining until the user is locked. Null if account lockout is not enabled. Note: if a user is locked explicitly via the Backend API, they may still have verification attempts remaining.

§updated_at: Option<i64>

Unix timestamp of last update.

§created_at: Option<i64>

Unix timestamp of creation.

§delete_self_enabled: Option<bool>

If enabled, user can delete themselves via FAPI.

§create_organization_enabled: Option<bool>

If enabled, user can create organizations via FAPI.

§last_active_at: Option<Option<i64>>

Unix timestamp of the latest session activity, with day precision.

Implementations§

source§

impl User

source

pub fn new() -> User

Trait Implementations§

source§

impl Clone for User

source§

fn clone(&self) -> User

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for User

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for User

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 PartialEq for User

source§

fn eq(&self, other: &User) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for User

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
source§

impl StructuralPartialEq for User

Auto Trait Implementations§

§

impl Freeze for User

§

impl RefUnwindSafe for User

§

impl Send for User

§

impl Sync for User

§

impl Unpin for User

§

impl UnwindSafe for User

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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<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>,