pub struct SearchResult {
pub doc: Value,
pub label: String,
pub score: f32,
pub housenumber: Option<String>,
pub lat: f64,
pub lon: f64,
pub distance_km: Option<f64>,
}Fields§
§doc: ValueThe document, with the matched housenumber’s data (coordinates, id…)
merged in and type set to housenumber, like addok does.
label: StringDisplay label, e.g. “42 Rue de Rivoli 75004 Paris”.
score: f32§housenumber: Option<String>§lat: f64§lon: f64§distance_km: Option<f64>Trait Implementations§
Source§impl Clone for SearchResult
impl Clone for SearchResult
Auto Trait Implementations§
impl Forget for SearchResult
impl Freeze for SearchResult
impl Move for SearchResult
impl RefUnwindSafe for SearchResult
impl Send for SearchResult
impl Sync for SearchResult
impl Unpin for SearchResult
impl UnsafeUnpin for SearchResult
impl UnwindSafe for SearchResult
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