Struct citymapper::ClientBuilder
[−]
[src]
pub struct ClientBuilder<'a> { /* fields omitted */ }
Interface for building a citymapper client
Methods
impl<'a> ClientBuilder<'a>
[src]
fn new(handle: &'a Handle, api_key: String) -> ClientBuilder
Create a ClientBuilder
which will initialize the client with the
given tokio handle and the api key.
fn with_base_url(&'a mut self, base_url: Url) -> &'a mut ClientBuilder
Set the base URL of the client to something other than the default, only really useful for testing.
fn with_logger(&'a mut self, logger: Logger) -> &'a mut ClientBuilder
Set the logger to use, if not set the default log
compatible logger will be used
fn build(&self) -> Client
Create a citymapper client from the configuration this builder represents.