pub struct User {Show 15 fields
pub username: String,
pub name: Option<Option<String>>,
pub email: Option<Option<String>>,
pub bio: Option<String>,
pub payout_data: Option<Option<UserPayoutData>>,
pub id: String,
pub avatar_url: String,
pub created: String,
pub role: Role,
pub badges: Option<i32>,
pub auth_providers: Option<Option<Vec<String>>>,
pub email_verified: Option<Option<bool>>,
pub has_password: Option<Option<bool>>,
pub has_totp: Option<Option<bool>>,
pub github_id: Option<Option<i32>>,
}
Fields§
§username: String
The user’s username
name: Option<Option<String>>
The user’s display name
email: Option<Option<String>>
The user’s email (only displayed if requesting your own account). Requires USER_READ_EMAIL
PAT scope.
bio: Option<String>
A description of the user
payout_data: Option<Option<UserPayoutData>>
§id: String
The user’s ID
avatar_url: String
The user’s avatar url
created: String
The time at which the user was created
role: Role
The user’s role
badges: Option<i32>
Any badges applicable to this user. These are currently unused and undisplayed, and as such are subject to change In order from first to seventh bit, the current bits are: - (unused) - EARLY_MODPACK_ADOPTER - EARLY_RESPACK_ADOPTER - EARLY_PLUGIN_ADOPTER - ALPHA_TESTER - CONTRIBUTOR - TRANSLATOR
auth_providers: Option<Option<Vec<String>>>
A list of authentication providers you have signed up for (only displayed if requesting your own account)
email_verified: Option<Option<bool>>
Whether your email is verified (only displayed if requesting your own account)
has_password: Option<Option<bool>>
Whether you have a password associated with your account (only displayed if requesting your own account)
has_totp: Option<Option<bool>>
Whether you have TOTP two-factor authentication connected to your account (only displayed if requesting your own account)
github_id: Option<Option<i32>>
Deprecated - this is no longer public for security reasons and is always null