Struct google_api_proto::maps::fleetengine::v1::ReportBillableTripRequest
source · pub struct ReportBillableTripRequest {
pub name: String,
pub country_code: String,
pub platform: i32,
pub related_ids: Vec<String>,
pub solution_type: i32,
}
Expand description
ReportBillableTrip request message.
Fields§
§name: String
Required. Must be in the format
providers/{provider}/billableTrips/{billable_trip}
. The
provider must be the Project ID (for example, sample-cloud-project
) of
the Google Cloud Project of which the service account making this call is a
member.
country_code: String
Required. Two letter country code of the country where the trip takes place. Price is defined according to country code.
platform: i32
The platform upon which the request was issued.
The identifiers that are directly related to the trip being reported. These
are usually IDs (for example, session IDs) of pre-booking operations done
before the trip ID is available. The number of related_ids
is
limited to 50.
solution_type: i32
The type of GMP product solution (for example,
ON_DEMAND_RIDESHARING_AND_DELIVERIES
) used for the reported trip.
Implementations§
source§impl ReportBillableTripRequest
impl ReportBillableTripRequest
sourcepub fn platform(&self) -> BillingPlatformIdentifier
pub fn platform(&self) -> BillingPlatformIdentifier
Returns the enum value of platform
, or the default if the field is set to an invalid enum value.
sourcepub fn set_platform(&mut self, value: BillingPlatformIdentifier)
pub fn set_platform(&mut self, value: BillingPlatformIdentifier)
Sets platform
to the provided enum value.
sourcepub fn solution_type(&self) -> SolutionType
pub fn solution_type(&self) -> SolutionType
Returns the enum value of solution_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_solution_type(&mut self, value: SolutionType)
pub fn set_solution_type(&mut self, value: SolutionType)
Sets solution_type
to the provided enum value.
Trait Implementations§
source§impl Clone for ReportBillableTripRequest
impl Clone for ReportBillableTripRequest
source§fn clone(&self) -> ReportBillableTripRequest
fn clone(&self) -> ReportBillableTripRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReportBillableTripRequest
impl Debug for ReportBillableTripRequest
source§impl Default for ReportBillableTripRequest
impl Default for ReportBillableTripRequest
source§impl Message for ReportBillableTripRequest
impl Message for ReportBillableTripRequest
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 ReportBillableTripRequest
impl PartialEq for ReportBillableTripRequest
source§fn eq(&self, other: &ReportBillableTripRequest) -> bool
fn eq(&self, other: &ReportBillableTripRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReportBillableTripRequest
Auto Trait Implementations§
impl Freeze for ReportBillableTripRequest
impl RefUnwindSafe for ReportBillableTripRequest
impl Send for ReportBillableTripRequest
impl Sync for ReportBillableTripRequest
impl Unpin for ReportBillableTripRequest
impl UnwindSafe for ReportBillableTripRequest
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