Struct geocoding::geoadmin::GeoAdminParams
source · [−]Expand description
An instance of a parameter builder for GeoAdmin geocoding
Implementations
sourceimpl<'a, T> GeoAdminParams<'a, T> where
T: Float + Debug,
impl<'a, T> GeoAdminParams<'a, T> where
T: Float + Debug,
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::{GeoAdmin, InputBounds, Point};
use geocoding::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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more