pub struct SessionIdentity {
pub provider: ProviderKind,
pub provider_session_id: String,
}Fields§
§provider: ProviderKind§provider_session_id: StringProvider-native session/thread id.
Implementations§
Source§impl SessionIdentity
impl SessionIdentity
pub fn new( provider: ProviderKind, provider_session_id: &str, ) -> Result<Self, AccountError>
Sourcepub fn account_ref(&self) -> String
pub fn account_ref(&self) -> String
Stable, non-reversible account reference: <provider>-<16 hex>.
Trait Implementations§
Source§impl Clone for SessionIdentity
impl Clone for SessionIdentity
Source§impl Debug for SessionIdentity
impl Debug for SessionIdentity
impl Eq for SessionIdentity
Source§impl PartialEq for SessionIdentity
impl PartialEq for SessionIdentity
impl StructuralPartialEq for SessionIdentity
Auto Trait Implementations§
impl Freeze for SessionIdentity
impl RefUnwindSafe for SessionIdentity
impl Send for SessionIdentity
impl Sync for SessionIdentity
impl Unpin for SessionIdentity
impl UnsafeUnpin for SessionIdentity
impl UnwindSafe for SessionIdentity
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.