pub struct AccountState {
pub provider: String,
pub label: String,
pub identity: IdentityKind,
pub access_expires_ms: Option<u64>,
pub cooldown: Option<CooldownState>,
pub last_usage: Option<ObservedOutcome>,
pub last_usage_ok_ms: Option<u64>,
pub last_refresh: Option<ObservedOutcome>,
}Expand description
One stored account and what the broker remembers about it.
Fields§
§provider: String§label: String§identity: IdentityKind§access_expires_ms: Option<u64>Access-token expiry, epoch ms; None when unknown.
cooldown: Option<CooldownState>An active cooldown (a reported provider limit).
last_usage: Option<ObservedOutcome>The last usage read of this account (cache hits are not reads).
last_usage_ok_ms: Option<u64>When a usage read of this account last succeeded, epoch ms.
last_refresh: Option<ObservedOutcome>The last token refresh exchange for this account in this process.
Trait Implementations§
Source§impl Clone for AccountState
impl Clone for AccountState
Source§impl Debug for AccountState
impl Debug for AccountState
Source§impl<'de> Deserialize<'de> for AccountState
impl<'de> Deserialize<'de> for AccountState
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
impl Eq for AccountState
Source§impl PartialEq for AccountState
impl PartialEq for AccountState
Source§impl Serialize for AccountState
impl Serialize for AccountState
impl StructuralPartialEq for AccountState
Auto Trait Implementations§
impl Freeze for AccountState
impl RefUnwindSafe for AccountState
impl Send for AccountState
impl Sync for AccountState
impl Unpin for AccountState
impl UnsafeUnpin for AccountState
impl UnwindSafe for AccountState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.