pub enum AuthCredentials {
UsernamePassword {
username: String,
password: String,
},
ApiKey {
key: String,
},
OAuth2Code {
code: String,
state: String,
},
JwtToken {
token: String,
},
Custom {
data: HashMap<String, Value>,
},
}Expand description
Authentication credentials
Variants§
UsernamePassword
Username and password
ApiKey
API key
OAuth2Code
OAuth 2.1 authorization code
JwtToken
JWT token
Custom
Custom credentials
Trait Implementations§
Source§impl Clone for AuthCredentials
impl Clone for AuthCredentials
Source§fn clone(&self) -> AuthCredentials
fn clone(&self) -> AuthCredentials
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthCredentials
impl Debug for AuthCredentials
Source§impl<'de> Deserialize<'de> for AuthCredentials
impl<'de> Deserialize<'de> for AuthCredentials
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuthCredentials
impl RefUnwindSafe for AuthCredentials
impl Send for AuthCredentials
impl Sync for AuthCredentials
impl Unpin for AuthCredentials
impl UnwindSafe for AuthCredentials
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