Expand description
Typed API routes via the Endpoint trait.
Define routes as types, then use Client::call for a typed
EndpointRequestBuilder. Path and query use .params()
and .query() with structs — not string keys.
For ad-hoc string paths, use Client::get instead (see RequestBuilder).
Helpers: [endpoint!], [define_params!], and (feature macros) EndpointParamsDerive /
EndpointQueryDerive.
Structs§
- Endpoint
Request Builder - Fluent builder for a typed
Endpoint. - Needs
Params - Type-state: path parameters still required before send.
- Ready
- Type-state: ready to configure query/headers and send.
Traits§
- Endpoint
- Describes a typed API route.
- Endpoint
Params - Applies path parameters to a
RequestBuilder. - Endpoint
Params Initial - Creates the initial
EndpointRequestBuilderforclient.call::<E>(). - Endpoint
Query - Applies query parameters to a
RequestBuilder.
Functions§
- apply_
serialized_ query - Applies a serde-serializable query struct to a request builder (feature
json).
Type Aliases§
- Params
Builder State - Initial builder state for an endpoint’s path parameters.