pub struct What3words { /* private fields */ }
Implementations§
Source§impl What3words
impl What3words
pub fn new(api_key: impl Into<String>) -> Self
pub fn header<K, V>(self, key: K, value: V) -> Selfwhere
HeaderName: TryFrom<K>,
<HeaderName as TryFrom<K>>::Error: Into<Error>,
HeaderValue: TryFrom<V>,
<HeaderValue as TryFrom<V>>::Error: Into<Error>,
pub fn hostname(self, host: impl Into<String>) -> Self
pub async fn convert_to_3wa<T: FormattedAddress + DeserializeOwned>( &self, options: &ConvertTo3wa, ) -> Result<T, Error>
pub async fn convert_to_coordinates<T: FormattedAddress + DeserializeOwned>( &self, options: &ConvertToCoordinates, ) -> Result<T, Error>
pub async fn available_languages(&self) -> Result<AvailableLanguages, Error>
pub async fn grid_section<T: DeserializeOwned + FormattedGridSection>( &self, bounding_box: &BoundingBox, ) -> Result<T, Error>
pub async fn autosuggest( &self, autosuggest: &Autosuggest, ) -> Result<AutosuggestResult, Error>
pub async fn autosuggest_with_coordinates( &self, autosuggest: &Autosuggest, ) -> Result<AutosuggestResult, Error>
pub async fn autosuggest_selection( &self, selection: &AutosuggestSelection, ) -> Result<(), Error>
pub async fn is_valid_3wa(&self, input: impl Into<String>) -> bool
pub fn did_you_mean(&self, input: impl Into<String>) -> bool
pub fn is_possible_3wa(&self, input: impl Into<String>) -> bool
pub fn find_possible_3wa(&self, input: impl Into<String>) -> Vec<String>
Auto Trait Implementations§
impl Freeze for What3words
impl RefUnwindSafe for What3words
impl Send for What3words
impl Sync for What3words
impl Unpin for What3words
impl UnwindSafe for What3words
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