pub enum AuthenticationMethod {
BasicAuth(String, String),
JWTAuth(String, String),
NoAuth,
}
Expand description
Kind of the authentication method to use when establishing a connection.
Variants§
BasicAuth(String, String)
Use basic authentication with a username and password for API calls.
JWTAuth(String, String)
Use JWT authentication with a token for API calls after authenticating with username and password.
NoAuth
Use no authentication for API calls. This is only recommended for local development.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthenticationMethod
impl RefUnwindSafe for AuthenticationMethod
impl Send for AuthenticationMethod
impl Sync for AuthenticationMethod
impl Unpin for AuthenticationMethod
impl UnwindSafe for AuthenticationMethod
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