pub struct GoogleCloudRetailV2SearchResponse {Show 14 fields
pub applied_controls: Option<Vec<String>>,
pub attribution_token: Option<String>,
pub conversational_search_result: Option<GoogleCloudRetailV2SearchResponseConversationalSearchResult>,
pub corrected_query: Option<String>,
pub experiment_info: Option<Vec<GoogleCloudRetailV2ExperimentInfo>>,
pub facets: Option<Vec<GoogleCloudRetailV2SearchResponseFacet>>,
pub invalid_condition_boost_specs: Option<Vec<GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec>>,
pub next_page_token: Option<String>,
pub pin_control_metadata: Option<GoogleCloudRetailV2PinControlMetadata>,
pub query_expansion_info: Option<GoogleCloudRetailV2SearchResponseQueryExpansionInfo>,
pub redirect_uri: Option<String>,
pub results: Option<Vec<GoogleCloudRetailV2SearchResponseSearchResult>>,
pub tile_navigation_result: Option<GoogleCloudRetailV2SearchResponseTileNavigationResult>,
pub total_size: Option<i32>,
}Expand description
Response message for SearchService.Search method.
§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).
Fields§
§applied_controls: Option<Vec<String>>The fully qualified resource name of applied controls.
attribution_token: Option<String>A unique search token. This should be included in the UserEvent logs resulting from this search, which enables accurate attribution of search model performance.
conversational_search_result: Option<GoogleCloudRetailV2SearchResponseConversationalSearchResult>This field specifies all related information that is needed on client side for UI rendering of conversational retail search.
corrected_query: Option<String>Contains the spell corrected query, if found. If the spell correction type is AUTOMATIC, then the search results are based on corrected_query. Otherwise the original query is used for search.
experiment_info: Option<Vec<GoogleCloudRetailV2ExperimentInfo>>Metadata related to A/B testing experiment associated with this response. Only exists when an experiment is triggered.
facets: Option<Vec<GoogleCloudRetailV2SearchResponseFacet>>Results of facets requested by user.
invalid_condition_boost_specs: Option<Vec<GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec>>The invalid SearchRequest.BoostSpec.condition_boost_specs that are not applied during serving.
next_page_token: Option<String>A token that can be sent as SearchRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
pin_control_metadata: Option<GoogleCloudRetailV2PinControlMetadata>Metadata for pin controls which were applicable to the request. This contains two map fields, one for all matched pins and one for pins which were matched but not applied. The two maps are keyed by pin position, and the values are the product ids which were matched to that pin.
query_expansion_info: Option<GoogleCloudRetailV2SearchResponseQueryExpansionInfo>Query expansion information for the returned results.
redirect_uri: Option<String>The URI of a customer-defined redirect page. If redirect action is triggered, no search is performed, and only redirect_uri and attribution_token are set in the response.
results: Option<Vec<GoogleCloudRetailV2SearchResponseSearchResult>>A list of matched items. The order represents the ranking.
This field specifies all related information for tile navigation that will be used in client side.
total_size: Option<i32>The estimated total count of matched items irrespective of pagination. The count of results returned by pagination may be less than the total_size that matches.
Trait Implementations§
Source§impl Clone for GoogleCloudRetailV2SearchResponse
impl Clone for GoogleCloudRetailV2SearchResponse
Source§fn clone(&self) -> GoogleCloudRetailV2SearchResponse
fn clone(&self) -> GoogleCloudRetailV2SearchResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more