Struct google_api_proto::google::cloud::retail::v2alpha::complete_query_response::CompletionResult
source · pub struct CompletionResult {
pub suggestion: String,
pub attributes: BTreeMap<String, CustomAttribute>,
pub facets: Vec<Facet>,
pub total_product_count: i32,
}
Expand description
Resource that represents completion results.
Fields§
§suggestion: String
The suggestion for the query.
attributes: BTreeMap<String, CustomAttribute>
Custom attributes for the suggestion term.
-
For “user-data”, the attributes are additional custom attributes ingested through BigQuery.
-
For “cloud-retail”, the attributes are product attributes generated by Cloud Retail. It requires [UserEvent.product_details][google.cloud.retail.v2alpha.UserEvent.product_details] is imported properly.
facets: Vec<Facet>
Facet information for the suggestion term. Gives the number of items resulting from a search with this suggestion term for each facet.
This is an experimental feature for limited customers. If you want to receive this facet information, reach out to the Retail support team.
total_product_count: i32
Total number of products associated with a search with this suggestion.
This is an experimental feature for limited customers. If you want to receive this product count information, reach out to the Retail support team.
Trait Implementations§
source§impl Clone for CompletionResult
impl Clone for CompletionResult
source§fn clone(&self) -> CompletionResult
fn clone(&self) -> CompletionResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CompletionResult
impl Debug for CompletionResult
source§impl Default for CompletionResult
impl Default for CompletionResult
source§impl Message for CompletionResult
impl Message for CompletionResult
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for CompletionResult
impl PartialEq for CompletionResult
source§fn eq(&self, other: &CompletionResult) -> bool
fn eq(&self, other: &CompletionResult) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CompletionResult
Auto Trait Implementations§
impl Freeze for CompletionResult
impl RefUnwindSafe for CompletionResult
impl Send for CompletionResult
impl Sync for CompletionResult
impl Unpin for CompletionResult
impl UnwindSafe for CompletionResult
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request