pub struct Result {Show 15 fields
pub cache_id: Option<String>,
pub display_link: Option<String>,
pub file_format: Option<String>,
pub formatted_url: Option<String>,
pub html_formatted_url: Option<String>,
pub html_snippet: Option<String>,
pub html_title: Option<String>,
pub image: Option<ResultImage>,
pub kind: Option<String>,
pub labels: Option<Vec<ResultLabels>>,
pub link: Option<String>,
pub mime: Option<String>,
pub pagemap: Option<HashMap<String, Value>>,
pub snippet: Option<String>,
pub title: Option<String>,
}Expand description
A custom search result.
This type is not used in any activity, and only used as part of another schema.
Fields§
§cache_id: Option<String>Indicates the ID of Google’s cached version of the search result.
display_link: Option<String>An abridged version of this search result’s URL, e.g. www.example.com.
file_format: Option<String>The file format of the search result.
formatted_url: Option<String>The URL displayed after the snippet for each search result.
html_formatted_url: Option<String>The HTML-formatted URL displayed after the snippet for each search result.
html_snippet: Option<String>The snippet of the search result, in HTML.
html_title: Option<String>The title of the search result, in HTML.
image: Option<ResultImage>Image belonging to a custom search result.
kind: Option<String>A unique identifier for the type of current object. For this API, it is customsearch#result.
labels: Option<Vec<ResultLabels>>Encapsulates all information about refinement labels.
link: Option<String>The full URL to which the search result is pointing, e.g. http://www.example.com/foo/bar.
mime: Option<String>The MIME type of the search result.
pagemap: Option<HashMap<String, Value>>Contains PageMap information for this search result.
snippet: Option<String>The snippet of the search result, in plain text.
title: Option<String>The title of the search result, in plain text.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Result
impl<'de> Deserialize<'de> for Result
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>,
impl Part for Result
Auto Trait Implementations§
impl Freeze for Result
impl RefUnwindSafe for Result
impl Send for Result
impl Sync for Result
impl Unpin for Result
impl UnwindSafe for Result
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more