Trait Request

Source
pub trait Request {
    type Key: AsRef<str>;
    type Value: Display;

    // Required method
    fn into_pairs(self) -> Vec<(Self::Key, Self::Value)>;
}
Expand description

Trait implemented for all accepted payload types.

It is just a nice wrapper for hiding a slightly more complex type constraint behind.

Required Associated Types§

Required Methods§

Source

fn into_pairs(self) -> Vec<(Self::Key, Self::Value)>

Implementors§

Source§

impl<I, K, V> Request for I
where I: IntoIterator<Item = (K, V)>, K: AsRef<str>, V: Display,

Source§

type Key = K

Source§

type Value = V