pub trait AuthAccount:
Clone
+ Send
+ Sync
+ Serialize
+ Debug
+ 'static {
Show 13 methods
// Required methods
fn id(&self) -> &str;
fn account_id(&self) -> &str;
fn provider_id(&self) -> &str;
fn user_id(&self) -> &str;
fn access_token(&self) -> Option<&str>;
fn refresh_token(&self) -> Option<&str>;
fn id_token(&self) -> Option<&str>;
fn access_token_expires_at(&self) -> Option<DateTime<Utc>>;
fn refresh_token_expires_at(&self) -> Option<DateTime<Utc>>;
fn scope(&self) -> Option<&str>;
fn password(&self) -> Option<&str>;
fn created_at(&self) -> DateTime<Utc>;
fn updated_at(&self) -> DateTime<Utc>;
}Expand description
Trait representing an account entity (OAuth provider linking).
Required Methods§
fn id(&self) -> &str
fn account_id(&self) -> &str
fn provider_id(&self) -> &str
fn user_id(&self) -> &str
fn access_token(&self) -> Option<&str>
fn refresh_token(&self) -> Option<&str>
fn id_token(&self) -> Option<&str>
fn access_token_expires_at(&self) -> Option<DateTime<Utc>>
fn refresh_token_expires_at(&self) -> Option<DateTime<Utc>>
fn scope(&self) -> Option<&str>
fn password(&self) -> Option<&str>
fn created_at(&self) -> DateTime<Utc>
fn updated_at(&self) -> DateTime<Utc>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.