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
fn query_string(&self) -> String
[src]
fn query_string(&self) -> String
[src]Return the query string containing required and non-default values
fn api_endpoint(&self) -> String
[src]
fn api_endpoint(&self) -> String
[src]Return the api endpoint with required values
Provided methods
Return formated query string parameter used in url
fn collect_query_params(&self, query_params: Vec<String>) -> String
[src]
fn collect_query_params(&self, query_params: Vec<String>) -> String
[src]Return a string of joined formatted url query parameters
Implementors
Route Trait implemntation