[−][src]Struct geocoding::geoadmin::GeoAdminParams
An instance of a parameter builder for GeoAdmin geocoding
Implementations
impl<'a, T> GeoAdminParams<'a, T> where
T: Float,
[src]
T: Float,
pub fn new(searchtext: &'a str) -> GeoAdminParams<'a, T>
[src]
Create a new GeoAdmin parameter builder
Example:
use geocoding::{GeoAdmin, InputBounds, Point}; use geocoding::geoadmin::{GeoAdminParams}; let bbox = InputBounds::new( (2600967.75, 1197426.0), (2600969.75, 1197428.0), ); let params = GeoAdminParams::new(&"Seftigenstrasse Bern") .with_origins("address") .with_bbox(&bbox) .build();
pub fn with_origins(&mut self, origins: &'a str) -> &mut Self
[src]
Set the origins
property
pub fn with_bbox(&mut self, bbox: &'a InputBounds<T>) -> &mut Self
[src]
Set the bbox
property
pub fn with_limit(&mut self, limit: u8) -> &mut Self
[src]
Set the limit
property
pub fn build(&self) -> GeoAdminParams<'a, T>
[src]
Build and return an instance of GeoAdminParams
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for GeoAdminParams<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for GeoAdminParams<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Sync for GeoAdminParams<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for GeoAdminParams<'a, T>
impl<'a, T> UnwindSafe for GeoAdminParams<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,