Skip to main content

Module typed

Module typed 

Source
Expand description

Type-level endpoint wrappers for compile-time enforcement.

These wrappers sit in the API type and enforce constraints at compile time:

See also Protected<Auth, E> for authentication.

Structs§

ContentType
An endpoint that enforces a specific request Content-Type.
FormContent
Built-in form content type marker.
JsonContent
Built-in JSON content type marker.
RateLimited
An endpoint with declared rate limits.
Validated
An endpoint with compile-time validated request bodies.
Versioned
An endpoint scoped to a specific API version.

Traits§

ApiVersion
A version marker type. Use unit structs for each version.
ContentTypeMarker
A content type marker.
RateLimit
Rate limiting configuration.
Validate
Trait for request body validators.