This is unreleased documentation for Yew Next version.
For up-to-date documentation, see the latest version on docs.rs.

Trait ToQuery

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§

type Error

Error that can be returned from the conversion.

Required Methods§

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

Method to encode the query into a string.

Implementors§

§

impl<T> ToQuery for Raw<T>
where T: AsRef<str>,

§

impl<T> ToQuery for T
where T: Serialize,