pub struct UserRecord {Show 14 fields
pub local_id: String,
pub email: Option<String>,
pub email_verified: bool,
pub display_name: Option<String>,
pub photo_url: Option<String>,
pub phone_number: Option<String>,
pub disabled: bool,
pub metadata: Option<UserMetadata>,
pub provider_user_info: Option<Vec<ProviderUserInfo>>,
pub password_hash: Option<String>,
pub password_salt: Option<String>,
pub custom_attributes: Option<String>,
pub tenant_id: Option<String>,
pub mfa_info: Option<Vec<MfaInfo>>,
}Expand description
Represents a user in the Firebase project.
Fields§
§local_id: StringThe user’s unique ID.
email: Option<String>The user’s email address.
email_verified: boolWhether the user’s email has been verified.
display_name: Option<String>The user’s display name.
photo_url: Option<String>The user’s photo URL.
phone_number: Option<String>The user’s phone number.
disabled: boolWhether the user is disabled.
metadata: Option<UserMetadata>Additional metadata about the user.
provider_user_info: Option<Vec<ProviderUserInfo>>Information about the user’s providers (Google, Facebook, etc.).
password_hash: Option<String>The user’s password hash.
password_salt: Option<String>The user’s password salt.
custom_attributes: Option<String>Custom claims set on the user (JSON string).
tenant_id: Option<String>The user’s tenant ID (for multi-tenancy).
mfa_info: Option<Vec<MfaInfo>>Multi-factor authentication info.
Trait Implementations§
Source§impl Debug for UserRecord
impl Debug for UserRecord
Source§impl Default for UserRecord
impl Default for UserRecord
Source§fn default() -> UserRecord
fn default() -> UserRecord
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserRecord
impl<'de> Deserialize<'de> for UserRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UserRecord
impl RefUnwindSafe for UserRecord
impl Send for UserRecord
impl Sync for UserRecord
impl Unpin for UserRecord
impl UnwindSafe for UserRecord
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