logo
pub struct Query<T>(pub T);
Expand description

Represents the parameters passed by the query string.

Tuple Fields

0: T

Trait Implementations

The type of API extractor.

If it is true, it means that this parameter is required.

The parameter type.

The raw parameter type for validators.

Register related types to registry.

Returns the location of the parameter if this extractor is parameter.

Returns the schema of the parameter if this extractor is parameter.

Returns a reference to the raw type of this parameter.

Parse from the HTTP request.

Returns name of security scheme if this extractor is security scheme.

Returns MetaRequest if this extractor is request object.

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

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.

Should always be Self

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more