[][src]Struct fxa_client::state_persistence::StateV2

pub(crate) struct StateV2 {
    pub(crate) config: Config,
    pub(crate) current_device_id: Option<String>,
    pub(crate) refresh_token: Option<RefreshToken>,
    pub(crate) scoped_keys: HashMap<String, ScopedKey>,
    pub(crate) last_handled_command: Option<u64>,
    pub(crate) commands_data: HashMap<String, String>,
    pub(crate) device_capabilities: HashSet<DeviceCapability>,
    pub(crate) access_token_cache: HashMap<String, AccessTokenInfo>,
    pub(crate) session_token: Option<String>,
    pub(crate) last_seen_profile: Option<CachedResponse<Profile>>,
    pub(crate) in_flight_migration: Option<MigrationData>,
    pub(crate) ecosystem_user_id: Option<String>,
}

Fields

config: Configcurrent_device_id: Option<String>refresh_token: Option<RefreshToken>scoped_keys: HashMap<String, ScopedKey>last_handled_command: Option<u64>commands_data: HashMap<String, String>device_capabilities: HashSet<DeviceCapability>access_token_cache: HashMap<String, AccessTokenInfo>session_token: Option<String>last_seen_profile: Option<CachedResponse<Profile>>in_flight_migration: Option<MigrationData>ecosystem_user_id: Option<String>

Implementations

impl StateV2[src]

pub(crate) fn start_over(&self) -> StateV2[src]

Clear the whole persisted state of the account, but keep just enough information to eventually reconnect to the same user account later.

Trait Implementations

impl Clone for StateV2[src]

impl<'de> Deserialize<'de> for StateV2[src]

impl Serialize for StateV2[src]

Auto Trait Implementations

impl !RefUnwindSafe for StateV2

impl Send for StateV2

impl !Sync for StateV2

impl Unpin for StateV2

impl UnwindSafe for StateV2

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,