pub struct BearerToken {
pub token: String,
}Expand description
A token for Authorization: Bearer.
The fetcher sends the token as written, so the token must have the token68
syntax of HTTP authentication. This is one or more ASCII letters, digits,
-, ., _, ~, +, or /, then any number of =. If the token has
another form, Error::Fetch occurs. A request fails before admission, and
FetcherOptions::bearer_token fails Fetcher::new. The message holds
no part of the token.
The Debug output shows a fixed word in place of the token. So the log of
a struct that holds a token does not show it.
Fields§
§token: StringThe token.
Trait Implementations§
Source§impl Clone for BearerToken
impl Clone for BearerToken
Source§impl Debug for BearerToken
impl Debug for BearerToken
impl Eq for BearerToken
Source§impl PartialEq for BearerToken
impl PartialEq for BearerToken
impl StructuralPartialEq for BearerToken
Auto Trait Implementations§
impl Forget for BearerToken
impl Freeze for BearerToken
impl Move for BearerToken
impl RefUnwindSafe for BearerToken
impl Send for BearerTokenwhere
RawVecInner: Send,
impl Sync for BearerTokenwhere
RawVecInner: Sync,
impl Unpin for BearerToken
impl UnsafeUnpin for BearerToken
impl UnwindSafe for BearerTokenwhere
RawVecInner: UnwindSafe,
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.