Skip to main content

HasContext

Trait HasContext 

Source
pub trait HasContext<T> { }
Expand description

A marker trait to associate a validated type with its context/state type. This is used by ValidatedJson to ensure the type can be extracted from axum requests with the correct state type.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§