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>,
pub postal: Option<PostalLine>,
pub postal_label: Option<String>,
}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>§postal: Option<PostalLine>The delivery line of the query (CEDEX), as written: the place was searched, the line is given back.
postal_label: Option<String>The address as it should be written for mail: the street part of the
label, then the delivery line (“1 Avenue du Général de Gaulle 92074
PARIS LA DEFENSE CEDEX”). Only with postal.
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