Trait ParameterValue

Source
pub trait ParameterValue:
    Serialize
    + ToSchema
    + Debug
    + Send
    + Sync
    + Clone
    + 'static { }
Expand description

A trait alias for types that can be used as parameter values.

This simplifies the generic constraints that are repeated throughout the codebase. All parameter values must be serializable, provide OpenAPI schemas, and be thread-safe.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> ParameterValue for T
where T: Serialize + ToSchema + Debug + Send + Sync + Clone + 'static,