Trait gecko::Route[][src]

pub trait Route {
    fn query_string(&self) -> String;
fn api_endpoint(&self) -> String; fn route(&self) -> String { ... }
fn format_query<T: Display + Copy + PartialEq>(
        &self,
        name: String,
        value: T,
        default: T
    ) -> String { ... }
fn collect_query_params(&self, query_params: Vec<String>) -> String { ... } }
Expand description

The Route trait can be implented to give a struct the ability to be used by CoinGeckoAPI

Required methods

Return the query string containing required and non-default values

Return the api endpoint with required values

Provided methods

Return the formatted route endpoint

Return formated query string parameter used in url

Return a string of joined formatted url query parameters

Implementors

Route Trait implemntation