pub struct Account {Show 13 fields
pub id: String,
pub account_id: String,
pub provider_id: String,
pub user_id: String,
pub access_token: Option<String>,
pub refresh_token: Option<String>,
pub id_token: Option<String>,
pub access_token_expires_at: Option<DateTime<Utc>>,
pub refresh_token_expires_at: Option<DateTime<Utc>>,
pub scope: Option<String>,
pub password: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Account linking (for OAuth providers) - matches OpenAPI schema
Fields§
§id: String§account_id: String§provider_id: String§user_id: String§access_token: Option<String>§refresh_token: Option<String>§id_token: Option<String>§access_token_expires_at: Option<DateTime<Utc>>§refresh_token_expires_at: Option<DateTime<Utc>>§scope: Option<String>§password: Option<String>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl AuthAccount for Account
impl AuthAccount for Account
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>
Source§impl<'de> Deserialize<'de> for Account
impl<'de> Deserialize<'de> for Account
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Account, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Account, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MemoryAccount for Account
impl MemoryAccount for Account
fn from_create( id: String, create: &CreateAccount, now: DateTime<Utc>, ) -> Account
Source§impl Serialize for Account
impl Serialize for Account
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
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