[][src]Struct geocoding::geoadmin::GeoAdminParams

pub struct GeoAdminParams<'a, T> where
    T: Float
{ /* fields omitted */ }

An instance of a parameter builder for GeoAdmin geocoding

Implementations

impl<'a, T> GeoAdminParams<'a, T> where
    T: Float
[src]

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

impl<'a, T> Send for GeoAdminParams<'a, T> where
    T: Sync

impl<'a, T> Sync for GeoAdminParams<'a, T> where
    T: Sync

impl<'a, T> Unpin for GeoAdminParams<'a, T>

impl<'a, T> UnwindSafe for GeoAdminParams<'a, T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.