SerializeParams

Trait SerializeParams 

Source
pub trait SerializeParams {
    type Key: Display;
    type Value: Display;
    type Iterator: Iterator<Item = (Self::Key, Self::Value)>;

    // Required method
    fn serialize_params(self) -> Self::Iterator;
}
Expand description

Represents a value that can be serialized.

The Extras type parameter must implement this for Uri to be displayable.

Required Associated Types§

Source

type Key: Display

Parameter name.

Warning: displaying Uri will panic if the key contains = character!

Source

type Value: Display

Parameter value.

Source

type Iterator: Iterator<Item = (Self::Key, Self::Value)>

Iterator over key-value pairs

Required Methods§

Source

fn serialize_params(self) -> Self::Iterator

Constructs the iterator over key-value pairs.

Implementors§