pub struct GeocodeOptions {
pub limit: Option<u32>,
pub language: Option<String>,
pub country_codes: Vec<String>,
pub bounding_box: Option<BoundingBox>,
pub provider_extra: Option<Value>,
}Expand description
Options for forward geocoding (address → coordinate).
Fields§
§limit: Option<u32>Maximum number of results to return
language: Option<String>Preferred response language (BCP 47 language tag, e.g., “en-US”)
country_codes: Vec<String>Restrict results to these country codes (ISO 3166-1 alpha-3)
bounding_box: Option<BoundingBox>Restrict search to this bounding box
provider_extra: Option<Value>Provider-specific options (HERE: political_view, show, qq; Google: region, components)
Trait Implementations§
Source§impl Clone for GeocodeOptions
impl Clone for GeocodeOptions
Source§fn clone(&self) -> GeocodeOptions
fn clone(&self) -> GeocodeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeocodeOptions
impl Debug for GeocodeOptions
Source§impl Default for GeocodeOptions
impl Default for GeocodeOptions
Source§fn default() -> GeocodeOptions
fn default() -> GeocodeOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GeocodeOptions
impl<'de> Deserialize<'de> for GeocodeOptions
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
Auto Trait Implementations§
impl Freeze for GeocodeOptions
impl RefUnwindSafe for GeocodeOptions
impl Send for GeocodeOptions
impl Sync for GeocodeOptions
impl Unpin for GeocodeOptions
impl UnsafeUnpin for GeocodeOptions
impl UnwindSafe for GeocodeOptions
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