pub struct User {Show 152 fields
pub owner: String,
pub name: String,
pub created_time: String,
pub updated_time: String,
pub deleted_time: String,
pub id: String,
pub external_id: String,
pub type: String,
pub password: String,
pub password_salt: String,
pub password_type: String,
pub display_name: String,
pub first_name: String,
pub last_name: String,
pub avatar: String,
pub avatar_type: String,
pub permanent_avatar: String,
pub email: String,
pub email_verified: bool,
pub phone: String,
pub country_code: String,
pub region: String,
pub location: String,
pub address: Vec<String>,
pub affiliation: String,
pub title: String,
pub id_card_type: String,
pub id_card: String,
pub homepage: String,
pub bio: String,
pub tag: String,
pub language: String,
pub gender: String,
pub birthday: String,
pub education: String,
pub score: i32,
pub karma: i32,
pub ranking: i32,
pub balance: f64,
pub currency: String,
pub is_default_avatar: bool,
pub is_online: bool,
pub is_admin: bool,
pub is_forbidden: bool,
pub is_deleted: bool,
pub signup_application: String,
pub hash: String,
pub pre_hash: String,
pub access_key: String,
pub access_secret: String,
pub access_token: String,
pub created_ip: String,
pub last_signin_time: String,
pub last_signin_ip: String,
pub github: String,
pub google: String,
pub qq: String,
pub wechat: String,
pub facebook: String,
pub dingtalk: String,
pub weibo: String,
pub gitee: String,
pub linkedin: String,
pub wecom: String,
pub lark: String,
pub gitlab: String,
pub adfs: String,
pub baidu: String,
pub alipay: String,
pub casdoor: String,
pub infoflow: String,
pub apple: String,
pub azuread: String,
pub azureadb2c: String,
pub slack: String,
pub steam: String,
pub bilibili: String,
pub okta: String,
pub douyin: String,
pub line: String,
pub amazon: String,
pub auth0: String,
pub battlenet: String,
pub bitbucket: String,
pub box: String,
pub cloudfoundry: String,
pub dailymotion: String,
pub deezer: String,
pub digitalocean: String,
pub discord: String,
pub dropbox: String,
pub eveonline: String,
pub fitbit: String,
pub gitea: String,
pub heroku: String,
pub influxcloud: String,
pub instagram: String,
pub intercom: String,
pub kakao: String,
pub lastfm: String,
pub mailru: String,
pub meetup: String,
pub microsoftonline: String,
pub naver: String,
pub nextcloud: String,
pub onedrive: String,
pub oura: String,
pub patreon: String,
pub paypal: String,
pub salesforce: String,
pub shopify: String,
pub soundcloud: String,
pub spotify: String,
pub strava: String,
pub stripe: String,
pub tiktok: String,
pub tumblr: String,
pub twitch: String,
pub twitter: String,
pub typetalk: String,
pub uber: String,
pub vk: String,
pub wepay: String,
pub xero: String,
pub yahoo: String,
pub yammer: String,
pub yandex: String,
pub zoom: String,
pub metamask: String,
pub web3onboard: String,
pub custom: String,
pub webauthn_credentials: Vec<String>,
pub preferred_mfa_type: String,
pub recovery_codes: Vec<String>,
pub totp_secret: String,
pub mfa_phone_enabled: bool,
pub mfa_email_enabled: bool,
pub multi_factor_auths: Vec<MfaProps>,
pub invitation: String,
pub invitation_code: String,
pub face_ids: Vec<FaceId>,
pub ldap: String,
pub properties: HashMap<String, String>,
pub roles: Vec<Role>,
pub permissions: Vec<Permission>,
pub groups: Vec<String>,
pub last_signin_wrong_time: String,
pub signin_wrong_times: i32,
pub managed_accounts: Vec<ManagedAccount>,
pub mfa_accounts: Vec<MfaAccount>,
pub need_update_password: bool,
pub ip_whitelist: String,
}
Expand description
User info struct, defined in the SDK.
Fields§
§owner: String
§name: String
§created_time: String
§updated_time: String
§deleted_time: String
§id: String
§external_id: String
§type: String
§password: String
§password_salt: String
§password_type: String
§display_name: String
§first_name: String
§last_name: String
§avatar: String
§avatar_type: String
§permanent_avatar: String
§email: String
§email_verified: bool
§phone: String
§country_code: String
§region: String
§location: String
§address: Vec<String>
§affiliation: String
§title: String
§id_card_type: String
§id_card: String
§homepage: String
§bio: String
§tag: String
§language: String
§gender: String
§birthday: String
§education: String
§score: i32
§karma: i32
§ranking: i32
§balance: f64
§currency: String
§is_default_avatar: bool
§is_online: bool
§is_admin: bool
§is_forbidden: bool
§is_deleted: bool
§signup_application: String
§hash: String
§pre_hash: String
§access_key: String
§access_secret: String
§access_token: String
§created_ip: String
§last_signin_time: String
§last_signin_ip: String
§github: String
§google: String
§qq: String
§wechat: String
§facebook: String
§dingtalk: String
§weibo: String
§gitee: String
§linkedin: String
§wecom: String
§lark: String
§gitlab: String
§adfs: String
§baidu: String
§alipay: String
§casdoor: String
§infoflow: String
§apple: String
§azuread: String
§azureadb2c: String
§slack: String
§steam: String
§bilibili: String
§okta: String
§douyin: String
§line: String
§amazon: String
§auth0: String
§battlenet: String
§bitbucket: String
§box: String
§cloudfoundry: String
§dailymotion: String
§deezer: String
§digitalocean: String
§discord: String
§dropbox: String
§eveonline: String
§fitbit: String
§gitea: String
§heroku: String
§influxcloud: String
§instagram: String
§intercom: String
§kakao: String
§lastfm: String
§mailru: String
§meetup: String
§microsoftonline: String
§nextcloud: String
§onedrive: String
§oura: String
§patreon: String
§paypal: String
§salesforce: String
§shopify: String
§soundcloud: String
§spotify: String
§strava: String
§stripe: String
§tiktok: String
§tumblr: String
§twitch: String
§twitter: String
§typetalk: String
§uber: String
§vk: String
§wepay: String
§xero: String
§yahoo: String
§yammer: String
§yandex: String
§zoom: String
§metamask: String
§web3onboard: String
§custom: String
§webauthn_credentials: Vec<String>
§preferred_mfa_type: String
§recovery_codes: Vec<String>
§totp_secret: String
§mfa_phone_enabled: bool
§mfa_email_enabled: bool
§multi_factor_auths: Vec<MfaProps>
§invitation: String
§invitation_code: String
§face_ids: Vec<FaceId>
§ldap: String
§properties: HashMap<String, String>
§roles: Vec<Role>
§permissions: Vec<Permission>
§groups: Vec<String>
§last_signin_wrong_time: String
§signin_wrong_times: i32
§managed_accounts: Vec<ManagedAccount>
§mfa_accounts: Vec<MfaAccount>
§need_update_password: bool
§ip_whitelist: String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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
Source§impl Model for User
impl Model 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> 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