pub struct SessionKey {
pub account: String,
pub user: String,
}Expand description
Identifies a pool by its (account, user) — one authentication identity.
Account-agnostic: keys come from request/config values, never a hardcoded account list.
Fields§
§account: StringThe Snowflake account identifier (normalized by the engine).
user: StringThe Snowflake user the sessions authenticate as.
Implementations§
Trait Implementations§
Source§impl Clone for SessionKey
impl Clone for SessionKey
Source§fn clone(&self) -> SessionKey
fn clone(&self) -> SessionKey
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 Debug for SessionKey
impl Debug for SessionKey
impl Eq for SessionKey
Source§impl Hash for SessionKey
impl Hash for SessionKey
Source§impl PartialEq for SessionKey
impl PartialEq for SessionKey
Source§fn eq(&self, other: &SessionKey) -> bool
fn eq(&self, other: &SessionKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionKey
Auto Trait Implementations§
impl Freeze for SessionKey
impl RefUnwindSafe for SessionKey
impl Send for SessionKey
impl Sync for SessionKey
impl Unpin for SessionKey
impl UnsafeUnpin for SessionKey
impl UnwindSafe for SessionKey
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.