pub struct SearchOpts {
pub limit: Option<usize>,
pub lat: Option<f64>,
pub lon: Option<f64>,
pub filters: HashMap<String, Vec<String>>,
pub autocomplete: Option<bool>,
}Fields§
§limit: Option<usize>Number of results, 5 by default like the addok HTTP API.
lat: Option<f64>Center, to favour nearby results.
lon: Option<f64>§filters: HashMap<String, Vec<String>>Filters on indexed filter keys (type, postcode…). Several values
for one key are OR-ed.
autocomplete: Option<bool>Treat the last word as a prefix. On by default, like the HTTP API.
Trait Implementations§
Source§impl Clone for SearchOpts
impl Clone for SearchOpts
Source§impl Debug for SearchOpts
impl Debug for SearchOpts
Auto Trait Implementations§
impl Forget for SearchOpts
impl Freeze for SearchOpts
impl Move for SearchOpts
impl RefUnwindSafe for SearchOpts
impl Send for SearchOpts
impl Sync for SearchOpts
impl Unpin for SearchOpts
impl UnsafeUnpin for SearchOpts
impl UnwindSafe for SearchOpts
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