Enum swagger::auth::AuthData [] [src]

pub enum AuthData {
    Basic(Basic),
    Bearer(Bearer),
    ApiKey(String),
}

Storage of raw authentication data, used both for storing incoming request authentication, and for authenticating outgoing client requests.

Variants

HTTP Basic auth.

HTTP Bearer auth, used for OAuth2.

Header-based or query parameter-based API key auth.

Methods

impl AuthData
[src]

[src]

Set Basic authentication

[src]

Set Bearer token authentication

[src]

Set ApiKey authentication

Trait Implementations

impl Clone for AuthData
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for AuthData
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for AuthData
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

Auto Trait Implementations

impl Send for AuthData

impl Sync for AuthData