Struct google_customsearch1::api::Search
source · 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.