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
type Error
Error that can be returned from the conversion.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".