pub struct AccountAuthBundle {
pub token_type: String,
pub access_token: String,
pub refresh_token: String,
pub session: Option<AccountSession>,
pub user: Option<AccountUser>,
}Expand description
A short-lived access credential and its durable refresh/session metadata.
This type intentionally does not implement Debug, preventing accidental
token disclosure through ordinary diagnostic formatting.
Fields§
§token_type: StringAuthentication scheme returned by the account service.
access_token: StringShort-lived bearer credential. Never serialize this outside secure storage.
refresh_token: StringRefresh credential. Never serialize this outside secure storage.
session: Option<AccountSession>Durable server session metadata, when returned by the service.
user: Option<AccountUser>Cached non-secret account record, when returned by the service.
Trait Implementations§
Source§impl Clone for AccountAuthBundle
impl Clone for AccountAuthBundle
Source§fn clone(&self) -> AccountAuthBundle
fn clone(&self) -> AccountAuthBundle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for AccountAuthBundle
impl<'de> Deserialize<'de> for AccountAuthBundle
Source§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 Freeze for AccountAuthBundle
impl RefUnwindSafe for AccountAuthBundle
impl Send for AccountAuthBundle
impl Sync for AccountAuthBundle
impl Unpin for AccountAuthBundle
impl UnsafeUnpin for AccountAuthBundle
impl UnwindSafe for AccountAuthBundle
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