pub struct GeoAdminParams<'a, T>{ /* private fields */ }
Expand description
An instance of a parameter builder for GeoAdmin geocoding
Implementations§
Source§impl<'a, T> GeoAdminParams<'a, T>
impl<'a, T> GeoAdminParams<'a, T>
Sourcepub fn new(searchtext: &'a str) -> GeoAdminParams<'a, T>
pub fn new(searchtext: &'a str) -> GeoAdminParams<'a, T>
Create a new GeoAdmin parameter builder
§Example:
use geocoding_async::{GeoAdmin, InputBounds, Point};
use geocoding_async::geoadmin::{GeoAdminParams};
let bbox = InputBounds::new(
(7.4513398, 46.92792859),
(7.4513662, 46.9279467),
);
let params = GeoAdminParams::new(&"Seftigenstrasse Bern")
.with_origins("address")
.with_bbox(&bbox)
.build();
Sourcepub fn with_origins(&mut self, origins: &'a str) -> &mut Self
pub fn with_origins(&mut self, origins: &'a str) -> &mut Self
Set the origins
property
Sourcepub fn with_bbox(&mut self, bbox: &'a InputBounds<T>) -> &mut Self
pub fn with_bbox(&mut self, bbox: &'a InputBounds<T>) -> &mut Self
Set the bbox
property
Sourcepub fn with_limit(&mut self, limit: u8) -> &mut Self
pub fn with_limit(&mut self, limit: u8) -> &mut Self
Set the limit
property
Sourcepub fn build(&self) -> GeoAdminParams<'a, T>
pub fn build(&self) -> GeoAdminParams<'a, T>
Build and return an instance of GeoAdminParams
Auto Trait Implementations§
impl<'a, T> Freeze for GeoAdminParams<'a, T>
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§
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