pub struct Maps { /* private fields */ }
Implementations§
Source§impl Maps
impl Maps
pub fn new(api_key: String) -> Self
pub async fn get_cloud_map( &self, zoom: u8, x_tiles: u8, y_tiles: u8, ) -> Result<Response, Box<dyn Error>>
pub async fn get_precipitation_map( &self, zoom: u8, x_tiles: u8, y_tiles: u8, ) -> Result<Response, Box<dyn Error>>
pub async fn get_pressure_map( &self, zoom: u8, x_tiles: u8, y_tiles: u8, ) -> Result<Response, Box<dyn Error>>
pub async fn get_wind_speed_map( &self, zoom: u8, x_tiles: u8, y_tiles: u8, ) -> Result<Response, Box<dyn Error>>
pub async fn get_temperature_map( &self, zoom: u8, x_tiles: u8, y_tiles: u8, ) -> Result<Response, Box<dyn Error>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Maps
impl<'de> Deserialize<'de> for Maps
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Maps
impl Ord for Maps
Source§impl PartialOrd for Maps
impl PartialOrd for Maps
impl Eq for Maps
impl StructuralPartialEq for Maps
Auto Trait Implementations§
impl Freeze for Maps
impl RefUnwindSafe for Maps
impl Send for Maps
impl Sync for Maps
impl Unpin for Maps
impl UnwindSafe for Maps
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.