Trait conjure_http::server::DecodeParam
source · pub trait DecodeParam<T> {
// Required method
fn decode<I>(runtime: &ConjureRuntime, params: I) -> Result<T, Error>
where I: IntoIterator,
I::Item: AsRef<str>;
}Expand description
A trait implemented by URL parameter decoders used by custom Conjure server trait implementations.
Required Methods§
sourcefn decode<I>(runtime: &ConjureRuntime, params: I) -> Result<T, Error>
fn decode<I>(runtime: &ConjureRuntime, params: I) -> Result<T, Error>
Decodes the value from the sequence of values.
The values have already been percent-decoded.
Object Safety§
This trait is not object safe.