Query

Trait Query 

Source
pub trait Query: Sized + Clone {
    // Required method
    fn get_query_params(self) -> Vec<(String, String)>;

    // Provided method
    fn format_to_query_params(
        url: &str,
        params: Vec<(String, String)>,
    ) -> Result<String, Box<dyn Error>> { ... }
}

Required Methods§

Provided Methods§

Source

fn format_to_query_params( url: &str, params: Vec<(String, String)>, ) -> Result<String, Box<dyn Error>>

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§