pub struct Context<'a> {
pub profile: &'a dyn Profile,
pub query: &'a str,
pub autocomplete: bool,
pub lat: Option<f64>,
pub lon: Option<f64>,
pub check_housenumber: bool,
pub only_housenumber: bool,
pub housenumber: &'a str,
}Expand description
What the result processors need from the query.
Fields§
§profile: &'a dyn Profile§query: &'a strASCII folded raw query (not cleaned by the query processors).
autocomplete: bool§lat: Option<f64>§lon: Option<f64>§check_housenumber: bool§only_housenumber: booltype=housenumber filter: results without a matching housenumber
are dropped.
housenumber: &'a strHousenumber tokens joined in query order.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Context<'a>
impl<'a> !UnwindSafe for Context<'a>
impl<'a> Forget for Context<'a>
impl<'a> Freeze for Context<'a>
impl<'a> Move for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> UnsafeUnpin for Context<'a>
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