Struct egs_api::api::UserData[][src]

pub struct UserData {
Show 15 fields pub expires_in: Option<i64>, pub expires_at: Option<DateTime<Utc>>, pub token_type: Option<String>, pub refresh_expires: Option<i64>, pub refresh_expires_at: Option<DateTime<Utc>>, pub account_id: Option<String>, pub client_id: Option<String>, pub internal_client: Option<bool>, pub client_service: Option<String>, pub display_name: Option<String>, pub app: Option<String>, pub in_app_id: Option<String>, pub device_id: Option<String>, pub error_message: Option<String>, pub error_code: Option<String>, // some fields omitted
}
Expand description

Structure that holds all user data

Needed for login

Fields

expires_in: Option<i64>expires_at: Option<DateTime<Utc>>token_type: Option<String>refresh_expires: Option<i64>refresh_expires_at: Option<DateTime<Utc>>account_id: Option<String>client_id: Option<String>internal_client: Option<bool>client_service: Option<String>display_name: Option<String>app: Option<String>in_app_id: Option<String>device_id: Option<String>error_message: Option<String>error_code: Option<String>

Implementations

Creates new UserData Structure

Get access token

Get refresh token

Set access token

Set refresh token

Updates only the present values in the existing user data

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.