pub struct Maptiler { /* private fields */ }Expand description
A struct that serves as a Maptiler “session”, which stores the API key and is used to create requests
Implementations§
Source§impl Maptiler
impl Maptiler
Sourcepub fn new_with_client<S>(
api_key: S,
client: Arc<Client>,
) -> Result<Self, Error>
pub fn new_with_client<S>( api_key: S, client: Arc<Client>, ) -> Result<Self, Error>
Initializes this Maptiler Cloud API session, with a user provided reqwest::Client
Sourcepub fn create_request(
&self,
request: impl Into<RequestType>,
) -> ConstructedRequest
pub fn create_request( &self, request: impl Into<RequestType>, ) -> ConstructedRequest
Performs a generic request to the Maptiler Cloud API
This may be a little simpler to use so that any type of request can be passed into this function
Sourcepub fn create_tile_request(
&self,
tile_request: TileRequest,
) -> ConstructedRequest
pub fn create_tile_request( &self, tile_request: TileRequest, ) -> ConstructedRequest
Performs a tile request to the Maptiler Cloud API
Auto Trait Implementations§
impl Freeze for Maptiler
impl !RefUnwindSafe for Maptiler
impl Send for Maptiler
impl Sync for Maptiler
impl Unpin for Maptiler
impl !UnwindSafe for Maptiler
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