pub trait ToQuery {
    type Error;

    // Required method
    fn to_query(&self) -> Result<Cow<'_, str>, Self::Error>;
}
Expand description

Type that can be encoded into a query string.

Required Associated Types§

source

type Error

Error that can be returned from the conversion.

Required Methods§

source

fn to_query(&self) -> Result<Cow<'_, str>, Self::Error>

Method to encode the query into a string.

Implementors§