pub trait QueryScalar {
const OPENAPI_TYPE: &'static str = "string";
}Expand description
A type that can appear as a query-parameter value.
Implemented for the primitives; implement it for a domain newtype or a unit-only enum that serializes as a plain string. The bound exists to keep nested structs out of query parameters — see the module docs.
Provided Associated Constants§
Sourceconst OPENAPI_TYPE: &'static str = "string"
const OPENAPI_TYPE: &'static str = "string"
The OpenAPI primitive type this value renders as.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".