Struct axum_token_auth::SessionKey
source · pub struct SessionKey(pub Uuid);
Expand description
Identifier for each session (one per client browser).
Tuple Fields§
§0: Uuid
Trait Implementations§
source§impl Clone for SessionKey
impl Clone for SessionKey
source§fn clone(&self) -> SessionKey
fn clone(&self) -> SessionKey
Returns a copy of the value. Read more
1.0.0 · 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
source§impl Default for SessionKey
impl Default for SessionKey
source§impl<S> FromRequestParts<S> for SessionKey
impl<S> FromRequestParts<S> for SessionKey
§type Rejection = (StatusCode, &'static str)
type Rejection = (StatusCode, &'static str)
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
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
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SessionKey
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 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<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.source§impl<S, T> FromRequest<S, ViaParts> for T
impl<S, T> FromRequest<S, ViaParts> for T
§type Rejection = <T as FromRequestParts<S>>::Rejection
type Rejection = <T as FromRequestParts<S>>::Rejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.