pub struct Account {Show 13 fields
pub id: Id,
pub user_id: Id,
pub provider_id: String,
pub account_id: String,
pub password_hash: Option<String>,
pub access_token: Option<Vec<u8>>,
pub refresh_token: Option<Vec<u8>>,
pub id_token: Option<String>,
pub access_token_expires_at: Option<OffsetDateTime>,
pub refresh_token_expires_at: Option<OffsetDateTime>,
pub scope: Option<String>,
pub created_at: OffsetDateTime,
pub updated_at: OffsetDateTime,
}Expand description
A way to sign in: provider_id = "credential" holds the password hash; OAuth providers
hold encrypted tokens.
Fields§
§id: Id§user_id: Id§provider_id: String§account_id: String§password_hash: Option<String>§access_token: Option<Vec<u8>>Keys::encrypted.
refresh_token: Option<Vec<u8>>Keys::encrypted.
id_token: Option<String>§access_token_expires_at: Option<OffsetDateTime>§refresh_token_expires_at: Option<OffsetDateTime>§scope: Option<String>§created_at: OffsetDateTime§updated_at: OffsetDateTimeImplementations§
Source§impl Account
impl Account
pub const CREDENTIAL: &'static str = "credential"
pub const ID: Col<Account, Id>
pub const USER_ID: Col<Account, Id>
pub const PROVIDER_ID: Col<Account, String>
pub const ACCOUNT_ID: Col<Account, String>
pub const PASSWORD_HASH: Col<Account, Option<String>>
pub const ACCESS_TOKEN: Col<Account, Option<Vec<u8>>>
pub const REFRESH_TOKEN: Col<Account, Option<Vec<u8>>>
pub const ID_TOKEN: Col<Account, Option<String>>
pub const ACCESS_TOKEN_EXPIRES_AT: Col<Account, Option<OffsetDateTime>>
pub const REFRESH_TOKEN_EXPIRES_AT: Col<Account, Option<OffsetDateTime>>
pub const SCOPE: Col<Account, Option<String>>
Trait Implementations§
impl StructuralPartialEq for Account
Auto Trait Implementations§
impl Forget for Account
impl Freeze for Account
impl Move for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnsafeUnpin 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