[][src]Struct places::api::matcher::SearchResult

pub struct SearchResult {
    pub search_string: String,
    pub url: Url,
    pub title: String,
    pub icon_url: Option<Url>,
    pub frecency: i64,
    pub reasons: Vec<MatchReason>,
}

Fields

search_string: String
[]

The search string for this match.

url: Url
[]

The URL to open when the user confirms a match. This is equivalent to nsIAutoCompleteResult.getFinalCompleteValueAt.

title: String
[]

The title of the autocompleted value, to show in the UI. This can be the title of the bookmark or page, origin, URL, or URL fragment.

icon_url: Option<Url>
[]

The favicon URL.

frecency: i64
[]

A frecency score for this match.

reasons: Vec<MatchReason>
[]

A list of reasons why this matched.

Implementations

impl SearchResult[src][]

pub fn from_adaptive_row(row: &Row<'_>) -> Result<Self>[src][]

Default search behaviors from Desktop: HISTORY, BOOKMARK, OPENPAGE, SEARCHES. Default match behavior: MATCH_BOUNDARY_ANYWHERE.

pub fn from_suggestion_row(row: &Row<'_>) -> Result<Self>[src]

pub fn from_origin_row(row: &Row<'_>) -> Result<Self>[src]

pub fn from_url_row(row: &Row<'_>) -> Result<Self>[src]

Trait Implementations

impl Clone for SearchResult[src][+]

impl Debug for SearchResult[src][+]

impl Eq for SearchResult[src]

impl From<SearchResult> for SearchResultMessage[src][+]

impl PartialEq<SearchResult> for SearchResult[src][+]

impl Serialize for SearchResult[src][+]

impl StructuralEq for SearchResult[src]

impl StructuralPartialEq for SearchResult[src]

Auto Trait Implementations

impl RefUnwindSafe for SearchResult

impl Send for SearchResult

impl Sync for SearchResult

impl Unpin for SearchResult

impl UnwindSafe for SearchResult

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src][+]

impl<T> Borrow<T> for T where
    T: ?Sized
[src][+]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src][+]

impl<T> From<T> for T[src][+]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src][+]

impl<T> ToOwned for T where
    T: Clone
[src][+]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src][+]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src][+]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[+]