Struct google_api_proto::google::cloud::retail::v2alpha::ListProductsResponse
source · pub struct ListProductsResponse {
pub products: Vec<Product>,
pub next_page_token: String,
pub total_size: i32,
}
Expand description
Response message for [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts] method.
Fields§
§products: Vec<Product>
The [Product][google.cloud.retail.v2alpha.Product]s.
next_page_token: String
A token that can be sent as [ListProductsRequest.page_token][google.cloud.retail.v2alpha.ListProductsRequest.page_token] to retrieve the next page. If this field is omitted, there are no subsequent pages.
total_size: i32
The total count of matched [Product][google.cloud.retail.v2alpha.Product]s irrespective of pagination. The total number of [Product][google.cloud.retail.v2alpha.Product]s returned by pagination may be less than the [total_size][google.cloud.retail.v2alpha.ListProductsResponse.total_size] that matches.
This field is ignored if [ListProductsRequest.require_total_size][google.cloud.retail.v2alpha.ListProductsRequest.require_total_size] is not set or [ListProductsRequest.page_token][google.cloud.retail.v2alpha.ListProductsRequest.page_token] is not empty.
Trait Implementations§
source§impl Clone for ListProductsResponse
impl Clone for ListProductsResponse
source§fn clone(&self) -> ListProductsResponse
fn clone(&self) -> ListProductsResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListProductsResponse
impl Debug for ListProductsResponse
source§impl Default for ListProductsResponse
impl Default for ListProductsResponse
source§impl Message for ListProductsResponse
impl Message for ListProductsResponse
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for ListProductsResponse
impl PartialEq for ListProductsResponse
source§fn eq(&self, other: &ListProductsResponse) -> bool
fn eq(&self, other: &ListProductsResponse) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListProductsResponse
Auto Trait Implementations§
impl Freeze for ListProductsResponse
impl RefUnwindSafe for ListProductsResponse
impl Send for ListProductsResponse
impl Sync for ListProductsResponse
impl Unpin for ListProductsResponse
impl UnwindSafe for ListProductsResponse
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