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
Get access token
Get refresh token
Set access token
Set refresh token
Trait Implementations
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 RefUnwindSafe for UserData
impl UnwindSafe for UserData
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self