DecodeParam

Trait 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.

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> 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>>,