pub enum AuthType {
Bearer(String),
ApiKey {
header: String,
value: String,
},
Basic {
username: String,
password: String,
},
}Expand description
Authentication type for fetching specs
Variants§
Bearer(String)
Bearer token authentication
ApiKey
API key in custom header
Basic
HTTP Basic authentication
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthType
impl RefUnwindSafe for AuthType
impl Send for AuthType
impl Sync for AuthType
impl Unpin for AuthType
impl UnsafeUnpin for AuthType
impl UnwindSafe for AuthType
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