[−][src]Enum swagger::auth::AuthData
Storage of raw authentication data, used both for storing incoming request authentication, and for authenticating outgoing client requests.
Variants
Basic(Basic)
HTTP Basic auth.
Bearer(Bearer)
HTTP Bearer auth, used for OAuth2.
ApiKey(String)
Header-based or query parameter-based API key auth.
Methods
impl AuthData
[src]
pub fn basic(username: &str, password: &str) -> Self
[src]
Set Basic authentication
pub fn bearer(token: &str) -> Self
[src]
Set Bearer token authentication
pub fn apikey(apikey: &str) -> Self
[src]
Set ApiKey authentication
Trait Implementations
impl Clone for AuthData
[src]
impl Debug for AuthData
[src]
impl PartialEq<AuthData> for AuthData
[src]
impl StructuralPartialEq for AuthData
[src]
Auto Trait Implementations
impl RefUnwindSafe for AuthData
impl Send for AuthData
impl Sync for AuthData
impl Unpin for AuthData
impl UnwindSafe for AuthData
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,