pub enum LivenessAuth {
Bearer,
BasicUser,
BasicPassword,
Header {
name: &'static str,
},
}Expand description
How to attach the candidate secret to the liveness HTTP request.
Variants§
Bearer
Authorization: Bearer <secret> header.
BasicUser
Authorization: Basic base64(<secret>:) header (the secret is
the username; the password is empty).
BasicPassword
HTTP Basic auth with empty username and <secret> as password.
Header
Custom HTTP header name carrying the raw secret.
Trait Implementations§
Source§impl Clone for LivenessAuth
impl Clone for LivenessAuth
Source§fn clone(&self) -> LivenessAuth
fn clone(&self) -> LivenessAuth
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 moreimpl Copy for LivenessAuth
Source§impl Debug for LivenessAuth
impl Debug for LivenessAuth
impl Eq for LivenessAuth
Source§impl PartialEq for LivenessAuth
impl PartialEq for LivenessAuth
Source§fn eq(&self, other: &LivenessAuth) -> bool
fn eq(&self, other: &LivenessAuth) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LivenessAuth
Auto Trait Implementations§
impl Freeze for LivenessAuth
impl RefUnwindSafe for LivenessAuth
impl Send for LivenessAuth
impl Sync for LivenessAuth
impl Unpin for LivenessAuth
impl UnsafeUnpin for LivenessAuth
impl UnwindSafe for LivenessAuth
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.