pub struct AccountSession {
pub id: String,
pub provider: String,
pub providers: Vec<String>,
pub scopes: Vec<String>,
pub expires_at: String,
pub refresh_expires_at: String,
pub status: String,
pub revoked_at: String,
}Expand description
Durable account-session metadata supplied by the account service.
Fields§
§id: StringDurable session identifier shared across Codewhale surfaces.
provider: StringAuthorization provider used to establish the session.
providers: Vec<String>Linked authorization providers recorded by the account service.
scopes: Vec<String>Explicit bounded scopes granted to this session.
expires_at: StringAccess-credential expiration in RFC 3339 format.
refresh_expires_at: StringRefresh/session expiration in RFC 3339 format.
status: StringExplicit server session state when supplied.
revoked_at: StringExplicit revocation timestamp when supplied.
Trait Implementations§
Source§impl Clone for AccountSession
impl Clone for AccountSession
Source§fn clone(&self) -> AccountSession
fn clone(&self) -> AccountSession
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 Default for AccountSession
impl Default for AccountSession
Source§fn default() -> AccountSession
fn default() -> AccountSession
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccountSession
impl<'de> Deserialize<'de> for AccountSession
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 AccountSession
impl RefUnwindSafe for AccountSession
impl Send for AccountSession
impl Sync for AccountSession
impl Unpin for AccountSession
impl UnsafeUnpin for AccountSession
impl UnwindSafe for AccountSession
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