Trait FromQuery

Source
pub trait FromQuery {
    // Required method
    fn from_query(query: &str) -> Self;
}

Required Methods§

Source

fn from_query(query: &str) -> Self

Create an instance of Self from a query string.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> FromQuery for T
where T: for<'a> From<&'a str>,