pub struct Geocode { /* private fields */ }Expand description
Entrypoint for interacting with the Geocode API.
Implementations§
Source§impl Geocode
impl Geocode
Sourcepub fn new<K>(key: K) -> Selfwhere
K: ToString,
pub fn new<K>(key: K) -> Selfwhere
K: ToString,
Create a new Geocode client struct. It takes a type that can convert into
an &str (String or Vec<u8> for example). As long as the function is
given a valid API key your requests will work.
Sourcepub fn new_from_env() -> Self
pub fn new_from_env() -> Self
Create a new Geocode client struct from environment variables. It
takes a type that can convert into
an &str (String or Vec<u8> for example). As long as the function is
given a valid API key and your requests will work.
Auto Trait Implementations§
impl Freeze for Geocode
impl !RefUnwindSafe for Geocode
impl Send for Geocode
impl Sync for Geocode
impl Unpin for Geocode
impl !UnwindSafe for Geocode
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