MaybeExtractor

Trait MaybeExtractor 

Source
pub trait MaybeExtractor: Extractor<Output = Option<Self::Value>> {
    type Value;

    // Required method
    fn maybe_get(self) -> Option<Self::Value>;
}

Required Associated Types§

Required Methods§

Source

fn maybe_get(self) -> Option<Self::Value>

Implementors§

Source§

impl<T, V> MaybeExtractor for T
where T: Extractor<Output = Option<V>>,

Source§

type Value = V