Enum rocket_okapi_fork::request::RequestHeaderInput[][src]

pub enum RequestHeaderInput {
    None,
    Parameter(Parameter),
    Security((SecurityScheme, SecurityRequirement)),
}
Expand description

Commonly the items in the request header can be parameters, or authorization methods in rocket, this item will let the implementer choose what they are

Variants

None

This request header requires no input anywhere

Parameter

Parameter input to the path, can be used to parse values from the header for example

Tuple Fields of Parameter

0: Parameter
Security

the request guard implements a security scheme

Tuple Fields of Security

0: (SecurityScheme, SecurityRequirement)

Trait Implementations

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts self into a collection.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.