pub struct SearchResult {
pub id: Option<String>,
pub coordinate: Coordinate,
pub address: Address,
pub title: Option<String>,
pub result_type: SearchResultType,
pub distance: Option<f64>,
pub confidence: Option<f64>,
pub categories: Vec<String>,
pub bounding_box: Option<BoundingBox>,
pub raw: Option<Value>,
}Expand description
A unified search result returned by the core trait.
Contains structured data that all providers can populate, plus an optional
raw field carrying provider-specific JSON for power users who need more detail.
Fields§
§id: Option<String>Unique identifier for this result (provider-specific)
coordinate: CoordinateGeographic position of the result
address: AddressStructured address components
title: Option<String>Display title (e.g., “Brandenburg Gate”)
result_type: SearchResultTypeClassification of match quality
distance: Option<f64>Distance from the search origin in meters (if applicable)
confidence: Option<f64>Confidence score (0.0-1.0, higher = more confident)
categories: Vec<String>POI categories (e.g., “restaurant”, “hotel”)
bounding_box: Option<BoundingBox>Bounding box for the result (if available)
raw: Option<Value>Provider-specific raw data for advanced use cases
Trait Implementations§
Source§impl Clone for SearchResult
impl Clone for SearchResult
Source§fn clone(&self) -> SearchResult
fn clone(&self) -> SearchResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SearchResult
impl Debug for SearchResult
Source§impl<'de> Deserialize<'de> for SearchResult
impl<'de> Deserialize<'de> for SearchResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze 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