[−][src]Struct places::api::matcher::SearchResult
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]
fn clone(&self) -> SearchResult
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SearchResult
[src]
impl Eq for SearchResult
[src]
impl From<SearchResult> for SearchResultMessage
[src]
fn from(res: SearchResult) -> Self
[src]
impl PartialEq<SearchResult> for SearchResult
[src]
fn eq(&self, other: &SearchResult) -> bool
[src]
fn ne(&self, other: &SearchResult) -> bool
[src]
impl Serialize for SearchResult
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,