pub struct ProviderSession {
pub access_token: Option<SecretString>,
pub refresh_token: Option<SecretString>,
pub device_secret: Option<SecretString>,
pub metadata: BTreeMap<String, String>,
}Expand description
Provider-owned session secrets, kept separate from Minecraft credentials.
Fields§
§access_token: Option<SecretString>§refresh_token: Option<SecretString>§device_secret: Option<SecretString>§metadata: BTreeMap<String, String>Non-secret provider state that may safely be persisted.
Trait Implementations§
Source§impl Clone for ProviderSession
impl Clone for ProviderSession
Source§impl Debug for ProviderSession
impl Debug for ProviderSession
Source§impl Default for ProviderSession
impl Default for ProviderSession
impl Eq for ProviderSession
Source§impl PartialEq for ProviderSession
impl PartialEq for ProviderSession
impl StructuralPartialEq for ProviderSession
Auto Trait Implementations§
impl Forget for ProviderSession
impl Freeze for ProviderSession
impl Move for ProviderSession
impl RefUnwindSafe for ProviderSession
impl Send for ProviderSession
impl Sync for ProviderSession
impl Unpin for ProviderSession
impl UnsafeUnpin for ProviderSession
impl UnwindSafe for ProviderSession
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,
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.