GoogleCloudRetailV2SearchResponse

Struct GoogleCloudRetailV2SearchResponse 

Source
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.

§tile_navigation_result: Option<GoogleCloudRetailV2SearchResponseTileNavigationResult>

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

Source§

fn clone(&self) -> GoogleCloudRetailV2SearchResponse

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GoogleCloudRetailV2SearchResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for GoogleCloudRetailV2SearchResponse

Source§

fn default() -> GoogleCloudRetailV2SearchResponse

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for GoogleCloudRetailV2SearchResponse

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for GoogleCloudRetailV2SearchResponse

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl ResponseResult for GoogleCloudRetailV2SearchResponse

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,