Struct citymapper::ClientBuilder [] [src]

pub struct ClientBuilder<'a> { /* fields omitted */ }

Interface for building a citymapper client

Methods

impl<'a> ClientBuilder<'a>
[src]

Create a ClientBuilder which will initialize the client with the given tokio handle and the api key.

Set the base URL of the client to something other than the default, only really useful for testing.

Set the logger to use, if not set the default log compatible logger will be used

Create a citymapper client from the configuration this builder represents.