pub trait RequestContextArgument {
    type Context;
}
Expand description

Helper trait for extracting the underlying Context type from the first argument to an endpoint. This trait exists to help the endpoint macro parse this argument.

The first argument to an endpoint handler must be of the form: RequestContext<T> where T is a caller-supplied value that implements ServerContext.

Required Associated Types§

Implementors§