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§

source

fn decode<I>(runtime: &ConjureRuntime, params: I) -> Result<T, Error>
where I: IntoIterator, I::Item: AsRef<str>,

Decodes the value from the sequence of values.

The values have already been percent-decoded.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> DecodeParam<Option<T>> for FromPlainOptionDecoder
where T: FromPlain, T::Err: Into<Box<dyn Error + Sync + Send>>,

source§

impl<T> DecodeParam<Option<T>> for FromStrOptionDecoder
where T: FromStr, T::Err: Into<Box<dyn Error + Sync + Send>>,

source§

impl<T> DecodeParam<T> for FromPlainDecoder
where T: FromPlain, T::Err: Into<Box<dyn Error + Sync + Send>>,

source§

impl<T> DecodeParam<T> for FromStrDecoder
where T: FromStr, T::Err: Into<Box<dyn Error + Sync + Send>>,

source§

impl<T, D, U> DecodeParam<T> for FromDecoder<D, U>
where T: From<U>, D: DecodeParam<U>,

source§

impl<T, U> DecodeParam<T> for FromPlainSeqDecoder<U>
where T: FromIterator<U>, U: FromPlain, U::Err: Into<Box<dyn Error + Sync + Send>>,

source§

impl<T, U> DecodeParam<T> for FromStrSeqDecoder<U>
where T: FromIterator<U>, U: FromStr, U::Err: Into<Box<dyn Error + Sync + Send>>,