casdoor_sdk_rust

Struct User

Source
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§naver: 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 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 Default for User

Source§

fn default() -> User

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

impl<'de> Deserialize<'de> for User
where User: Default,

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

Source§

fn ident() -> &'static str

Model identifier, used for splicing URLs.
Source§

fn plural_ident() -> &'static str

Models identifier, used for splicing URLs.
Source§

fn owner(&self) -> &str

Source§

fn name(&self) -> &str

Source§

fn support_update_columns() -> bool

Indicate whether this model currently supports updating individual columns one by one.
Source§

fn id(&self) -> String

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

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

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T