Struct google_api_proto::maps::fleetengine::delivery::v1::ListDeliveryVehiclesRequest
source · pub struct ListDeliveryVehiclesRequest {
pub header: Option<DeliveryRequestHeader>,
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub filter: String,
pub viewport: Option<Viewport>,
}
Expand description
The ListDeliveryVehicles
request message.
Fields§
§header: Option<DeliveryRequestHeader>
Optional. The standard Delivery API request header.
parent: String
Required. Must be in the format providers/{provider}
.
The provider
must be the Google Cloud Project ID.
For example, sample-cloud-project
.
page_size: i32
Optional. The maximum number of vehicles to return. The service may return fewer than this number. If you don’t specify this number, then the server determines the number of results to return.
page_token: String
Optional. A page token, received from a previous ListDeliveryVehicles
call. You must provide this in order to retrieve the subsequent page.
When paginating, all other parameters provided to ListDeliveryVehicles
must match the call that provided the page token.
filter: String
Optional. A filter query to apply when listing delivery vehicles. See http://aip.dev/160 for examples of the filter syntax. If you don’t specify a value, or if you specify an empty string for the filter, then all delivery vehicles are returned.
Note that the only queries supported for ListDeliveryVehicles
are
on vehicle attributes (for example, attributes.<key> = <value>
or
attributes.<key1> = <value1> AND attributes.<key2> = <value2>
). Also, all
attributes are stored as strings, so the only supported comparisons against
attributes are string comparisons. In order to compare against number or
boolean values, the values must be explicitly quoted to be treated as
strings (for example, attributes.<key> = "10"
or
attributes.<key> = "true"
).
The maximum number of restrictions allowed in a filter query is 50. A
restriction is a part of the query of the form
attribute.<KEY> <COMPARATOR> <VALUE>
, for example attributes.foo = bar
is 1 restriction.
viewport: Option<Viewport>
Optional. A filter that limits the vehicles returned to those whose last known location was in the rectangular area defined by the viewport.
Trait Implementations§
source§impl Clone for ListDeliveryVehiclesRequest
impl Clone for ListDeliveryVehiclesRequest
source§fn clone(&self) -> ListDeliveryVehiclesRequest
fn clone(&self) -> ListDeliveryVehiclesRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListDeliveryVehiclesRequest
impl Debug for ListDeliveryVehiclesRequest
source§impl Message for ListDeliveryVehiclesRequest
impl Message for ListDeliveryVehiclesRequest
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 ListDeliveryVehiclesRequest
impl PartialEq for ListDeliveryVehiclesRequest
source§fn eq(&self, other: &ListDeliveryVehiclesRequest) -> bool
fn eq(&self, other: &ListDeliveryVehiclesRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListDeliveryVehiclesRequest
Auto Trait Implementations§
impl Freeze for ListDeliveryVehiclesRequest
impl RefUnwindSafe for ListDeliveryVehiclesRequest
impl Send for ListDeliveryVehiclesRequest
impl Sync for ListDeliveryVehiclesRequest
impl Unpin for ListDeliveryVehiclesRequest
impl UnwindSafe for ListDeliveryVehiclesRequest
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