#[non_exhaustive]pub enum Credentials {
Basic(String, String),
Bearer(String),
ApiKey(String, String),
EncodedApiKey(String),
}Expand description
Credentials are redacted from Debug output.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Basic(String, String)
Username and password.
Bearer(String)
An OAuth or Elasticsearch token service bearer token.
ApiKey(String, String)
An API key as its ID and secret.
EncodedApiKey(String)
A Base64-encoded API key, as displayed by Kibana when a key is created.
Trait Implementations§
Source§impl Clone for Credentials
impl Clone for Credentials
Auto Trait Implementations§
impl Freeze for Credentials
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnsafeUnpin for Credentials
impl UnwindSafe for Credentials
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