pub trait TopDecodeMulti: Sized {
const IS_SINGLE_VALUE: bool = false;
// Provided methods
fn multi_decode<I>(input: &mut I) -> Result<Self, DecodeError>
where I: TopDecodeMultiInput { ... }
fn multi_decode_or_handle_err<I, H>(
input: &mut I,
h: H,
) -> Result<Self, H::HandledErr>
where I: TopDecodeMultiInput,
H: DecodeErrorHandler { ... }
}
Provided Associated Constants§
Sourceconst IS_SINGLE_VALUE: bool = false
const IS_SINGLE_VALUE: bool = false
Used to optimize single value loading of endpoint arguments.
Provided Methods§
fn multi_decode<I>(input: &mut I) -> Result<Self, DecodeError>where
I: TopDecodeMultiInput,
fn multi_decode_or_handle_err<I, H>(
input: &mut I,
h: H,
) -> Result<Self, H::HandledErr>where
I: TopDecodeMultiInput,
H: DecodeErrorHandler,
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.
Implementations on Foreign Types§
Source§impl TopDecodeMulti for ()
impl TopDecodeMulti for ()
fn multi_decode_or_handle_err<I, H>(
_input: &mut I,
_h: H,
) -> Result<Self, H::HandledErr>where
I: TopDecodeMultiInput,
H: DecodeErrorHandler,
Implementors§
impl TopDecodeMulti for IgnoreValue
impl TopDecodeMulti for PlaceholderOutput
impl<T0, T1> TopDecodeMulti for MultiValue2<T0, T1>where
T0: TopDecodeMulti,
T1: TopDecodeMulti,
impl<T0, T1, T2> TopDecodeMulti for MultiValue3<T0, T1, T2>
impl<T0, T1, T2, T3> TopDecodeMulti for MultiValue4<T0, T1, T2, T3>
impl<T0, T1, T2, T3, T4> TopDecodeMulti for MultiValue5<T0, T1, T2, T3, T4>where
T0: TopDecodeMulti,
T1: TopDecodeMulti,
T2: TopDecodeMulti,
T3: TopDecodeMulti,
T4: TopDecodeMulti,
impl<T0, T1, T2, T3, T4, T5> TopDecodeMulti for MultiValue6<T0, T1, T2, T3, T4, T5>where
T0: TopDecodeMulti,
T1: TopDecodeMulti,
T2: TopDecodeMulti,
T3: TopDecodeMulti,
T4: TopDecodeMulti,
T5: TopDecodeMulti,
impl<T0, T1, T2, T3, T4, T5, T6> TopDecodeMulti for MultiValue7<T0, T1, T2, T3, T4, T5, T6>where
T0: TopDecodeMulti,
T1: TopDecodeMulti,
T2: TopDecodeMulti,
T3: TopDecodeMulti,
T4: TopDecodeMulti,
T5: TopDecodeMulti,
T6: TopDecodeMulti,
impl<T0, T1, T2, T3, T4, T5, T6, T7> TopDecodeMulti for MultiValue8<T0, T1, T2, T3, T4, T5, T6, T7>where
T0: TopDecodeMulti,
T1: TopDecodeMulti,
T2: TopDecodeMulti,
T3: TopDecodeMulti,
T4: TopDecodeMulti,
T5: TopDecodeMulti,
T6: TopDecodeMulti,
T7: TopDecodeMulti,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8> TopDecodeMulti for MultiValue9<T0, T1, T2, T3, T4, T5, T6, T7, T8>where
T0: TopDecodeMulti,
T1: TopDecodeMulti,
T2: TopDecodeMulti,
T3: TopDecodeMulti,
T4: TopDecodeMulti,
T5: TopDecodeMulti,
T6: TopDecodeMulti,
T7: TopDecodeMulti,
T8: TopDecodeMulti,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> TopDecodeMulti for MultiValue10<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>where
T0: TopDecodeMulti,
T1: TopDecodeMulti,
T2: TopDecodeMulti,
T3: TopDecodeMulti,
T4: TopDecodeMulti,
T5: TopDecodeMulti,
T6: TopDecodeMulti,
T7: TopDecodeMulti,
T8: TopDecodeMulti,
T9: TopDecodeMulti,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> TopDecodeMulti for MultiValue11<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>where
T0: TopDecodeMulti,
T1: TopDecodeMulti,
T2: TopDecodeMulti,
T3: TopDecodeMulti,
T4: TopDecodeMulti,
T5: TopDecodeMulti,
T6: TopDecodeMulti,
T7: TopDecodeMulti,
T8: TopDecodeMulti,
T9: TopDecodeMulti,
T10: TopDecodeMulti,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> TopDecodeMulti for MultiValue12<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>where
T0: TopDecodeMulti,
T1: TopDecodeMulti,
T2: TopDecodeMulti,
T3: TopDecodeMulti,
T4: TopDecodeMulti,
T5: TopDecodeMulti,
T6: TopDecodeMulti,
T7: TopDecodeMulti,
T8: TopDecodeMulti,
T9: TopDecodeMulti,
T10: TopDecodeMulti,
T11: TopDecodeMulti,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> TopDecodeMulti for MultiValue13<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>where
T0: TopDecodeMulti,
T1: TopDecodeMulti,
T2: TopDecodeMulti,
T3: TopDecodeMulti,
T4: TopDecodeMulti,
T5: TopDecodeMulti,
T6: TopDecodeMulti,
T7: TopDecodeMulti,
T8: TopDecodeMulti,
T9: TopDecodeMulti,
T10: TopDecodeMulti,
T11: TopDecodeMulti,
T12: TopDecodeMulti,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> TopDecodeMulti for MultiValue14<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>where
T0: TopDecodeMulti,
T1: TopDecodeMulti,
T2: TopDecodeMulti,
T3: TopDecodeMulti,
T4: TopDecodeMulti,
T5: TopDecodeMulti,
T6: TopDecodeMulti,
T7: TopDecodeMulti,
T8: TopDecodeMulti,
T9: TopDecodeMulti,
T10: TopDecodeMulti,
T11: TopDecodeMulti,
T12: TopDecodeMulti,
T13: TopDecodeMulti,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> TopDecodeMulti for MultiValue15<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>where
T0: TopDecodeMulti,
T1: TopDecodeMulti,
T2: TopDecodeMulti,
T3: TopDecodeMulti,
T4: TopDecodeMulti,
T5: TopDecodeMulti,
T6: TopDecodeMulti,
T7: TopDecodeMulti,
T8: TopDecodeMulti,
T9: TopDecodeMulti,
T10: TopDecodeMulti,
T11: TopDecodeMulti,
T12: TopDecodeMulti,
T13: TopDecodeMulti,
T14: TopDecodeMulti,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> TopDecodeMulti for MultiValue16<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>where
T0: TopDecodeMulti,
T1: TopDecodeMulti,
T2: TopDecodeMulti,
T3: TopDecodeMulti,
T4: TopDecodeMulti,
T5: TopDecodeMulti,
T6: TopDecodeMulti,
T7: TopDecodeMulti,
T8: TopDecodeMulti,
T9: TopDecodeMulti,
T10: TopDecodeMulti,
T11: TopDecodeMulti,
T12: TopDecodeMulti,
T13: TopDecodeMulti,
T14: TopDecodeMulti,
T15: TopDecodeMulti,
impl<T> TopDecodeMulti for OptionalValue<T>where
T: TopDecodeMulti,
impl<T> TopDecodeMulti for MultiValueVec<T>where
T: TopDecodeMulti,
Source§impl<T> TopDecodeMulti for Twhere
T: TopDecode,
All single top decode types also work as multi-value decode types.
impl<T> TopDecodeMulti for Twhere
T: TopDecode,
All single top decode types also work as multi-value decode types.