pub struct NewAccount {
pub provider_id: String,
pub account_id: Option<String>,
pub password_hash: Option<String>,
pub access_token: Option<String>,
pub refresh_token: Option<String>,
pub id_token: Option<String>,
pub access_token_expires_at: Option<OffsetDateTime>,
pub refresh_token_expires_at: Option<OffsetDateTime>,
pub scope: Option<String>,
}Expand description
An account to create with a user or link to one.
Fields§
§provider_id: String§account_id: Option<String>Defaults to the user id (what the credential account uses).
password_hash: Option<String>§access_token: Option<String>Plaintext; encrypted before it is stored.
refresh_token: Option<String>Plaintext; encrypted before it is stored.
id_token: Option<String>§access_token_expires_at: Option<OffsetDateTime>§refresh_token_expires_at: Option<OffsetDateTime>§scope: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for NewAccount
impl Clone for NewAccount
Source§impl Debug for NewAccount
impl Debug for NewAccount
Auto Trait Implementations§
impl Forget for NewAccount
impl Freeze for NewAccount
impl Move for NewAccount
impl RefUnwindSafe for NewAccount
impl Send for NewAccount
impl Sync for NewAccount
impl Unpin for NewAccount
impl UnsafeUnpin for NewAccount
impl UnwindSafe for NewAccount
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