pub trait ToQuery {
    // Required method
    fn encode(&self) -> Cow<'_, str>;
}
Expand description

Determines how a query string is encoded.

Required Methods§

source

fn encode(&self) -> Cow<'_, str>

Encode self into a query string.

Implementations on Foreign Types§

source§

impl ToQuery for &str

source§

fn encode(&self) -> Cow<'_, str>

source§

impl ToQuery for ()

source§

fn encode(&self) -> Cow<'_, str>

source§

impl ToQuery for String

source§

fn encode(&self) -> Cow<'_, str>

Implementors§