pub struct ClientBuilder { /* private fields */ }Expand description
Client configuration
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn new(user_agent: impl Into<String>, url: impl Into<String>) -> Self
pub fn new(user_agent: impl Into<String>, url: impl Into<String>) -> Self
Create a new client for the given user agent url template, for instance “https://tile.openstreetmap.org/{z}/{x}/{y}.png”
Sourcepub fn application_metainfo(
self,
qualifier: impl Into<String>,
organization: impl Into<String>,
application: impl Into<String>,
) -> Self
pub fn application_metainfo( self, qualifier: impl Into<String>, organization: impl Into<String>, application: impl Into<String>, ) -> Self
Set application metainfo
Sourcepub fn tiles_cache(self, tiles_cache: String) -> Self
pub fn tiles_cache(self, tiles_cache: String) -> Self
Set the directory used for storing cache
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl !RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl !UnwindSafe for ClientBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more