pub enum AuthorizationToken<'s> {
Bearer(CowStr<'s>),
Dpop(CowStr<'s>),
}Expand description
Authorization token types for XRPC requests.
Variants§
Bearer(CowStr<'s>)
Bearer token (access JWT, refresh JWT to refresh the session)
Dpop(CowStr<'s>)
DPoP token (proof-of-possession) for OAuth
Trait Implementations§
Source§impl<'s> Clone for AuthorizationToken<'s>
impl<'s> Clone for AuthorizationToken<'s>
Source§fn clone(&self) -> AuthorizationToken<'s>
fn clone(&self) -> AuthorizationToken<'s>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'s> Debug for AuthorizationToken<'s>
impl<'s> Debug for AuthorizationToken<'s>
Source§impl<'s> IntoStatic for AuthorizationToken<'s>
impl<'s> IntoStatic for AuthorizationToken<'s>
Source§type Output = AuthorizationToken<'static>
type Output = AuthorizationToken<'static>
The “owned” variant of the type. For
Cow<'a, str>, this is Cow<'static, str>, for example.Source§fn into_static(self) -> AuthorizationToken<'static>
fn into_static(self) -> AuthorizationToken<'static>
Turns the value into an “owned” variant, which can then be returned, moved, etc. Read more
Source§impl<'s> PartialEq for AuthorizationToken<'s>
impl<'s> PartialEq for AuthorizationToken<'s>
impl<'s> Eq for AuthorizationToken<'s>
impl<'s> StructuralPartialEq for AuthorizationToken<'s>
Auto Trait Implementations§
impl<'s> Freeze for AuthorizationToken<'s>
impl<'s> RefUnwindSafe for AuthorizationToken<'s>
impl<'s> Send for AuthorizationToken<'s>
impl<'s> Sync for AuthorizationToken<'s>
impl<'s> Unpin for AuthorizationToken<'s>
impl<'s> UnwindSafe for AuthorizationToken<'s>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.