Trait gloo::history::query::ToQuery

source ·
pub trait ToQuery {
    type Error;

    // Required method
    fn to_query(&self) -> Result<Cow<'_, str>, Self::Error>;
}
Available on crate features history and query only.
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§

source§

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

source§

impl<T> ToQuery for Twhere T: Serialize,