Skip to content

enum

Key

pub enum Key {
    Bearer(&'static str),
    Header(&'static str, &'static str),
    Query(&'static str, &'static str),
    None,
}

How the upstream API takes its key. Each names the environment variable holding it.

Variants

Bearer

Bearer(&'static str)

Authorization: Bearer <key>.

Header

Header(&'static str, &'static str)

A header: (header name, variable).

Query

Query(&'static str, &'static str)

A query parameter: (parameter name, variable).

None

None

No key.

Trait implementations