pub struct Search {
pub context: Option<HashMap<String, Value>>,
pub items: Option<Vec<Result>>,
pub kind: Option<String>,
pub promotions: Option<Vec<Promotion>>,
pub queries: Option<SearchQueries>,
pub search_information: Option<SearchSearchInformation>,
pub spelling: Option<SearchSpelling>,
pub url: Option<SearchUrl>,
}Expand description
Response to a custom search request.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- siterestrict list cse (response)
- list cse (response)
Fields§
§context: Option<HashMap<String, Value>>Metadata and refinements associated with the given search engine, including: * The name of the search engine that was used for the query. * A set of facet objects (refinements) you can use for refining a search.
items: Option<Vec<Result>>The current set of custom search results.
kind: Option<String>Unique identifier for the type of current object. For this API, it is customsearch#search.
promotions: Option<Vec<Promotion>>The set of promotions. Present only if the custom search engine’s configuration files define any promotions for the given query.
queries: Option<SearchQueries>Query metadata for the previous, current, and next pages of results.
search_information: Option<SearchSearchInformation>Metadata about a search operation.
spelling: Option<SearchSpelling>Spell correction information for a query.
url: Option<SearchUrl>OpenSearch template and URL.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Search
impl<'de> Deserialize<'de> for Search
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 ResponseResult for Search
Auto Trait Implementations§
impl Freeze for Search
impl RefUnwindSafe for Search
impl Send for Search
impl Sync for Search
impl Unpin for Search
impl UnwindSafe for Search
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