pub enum AdminAuth {
None,
Token(String),
}Expand description
Authentication strategy used by the admin client.
Token(...) adds Authorization: Bearer <token> to every request.
Mirrors Java’s AuthenticationToken provider.
Variants§
None
No authentication.
Token(String)
Bearer token. The string is the raw token; the Bearer prefix is added
at request time.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdminAuth
impl RefUnwindSafe for AdminAuth
impl Send for AdminAuth
impl Sync for AdminAuth
impl Unpin for AdminAuth
impl UnsafeUnpin for AdminAuth
impl UnwindSafe for AdminAuth
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