pub enum Auth {
Token(String),
UserPass {
username: String,
password: String,
},
}
Expand description
Authentication credentials for API requests.
Supports token-based or username/password authentication.
Variants§
Token(String)
Token-based authentication with a single token string.
UserPass
Username and password authentication.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Auth
impl RefUnwindSafe for Auth
impl Send for Auth
impl Sync for Auth
impl Unpin for Auth
impl UnwindSafe for Auth
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