Struct google_api_proto::maps::fleetengine::v1::CreateTripRequest
source · pub struct CreateTripRequest {
pub header: Option<RequestHeader>,
pub parent: String,
pub trip_id: String,
pub trip: Option<Trip>,
}Expand description
CreateTrip request message.
Fields§
§header: Option<RequestHeader>The standard Fleet Engine request header.
parent: StringRequired. Must be in the format providers/{provider}.
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.
trip_id: StringRequired. Unique Trip ID. Subject to the following restrictions:
- Must be a valid Unicode string.
- Limited to a maximum length of 64 characters.
- Normalized according to [Unicode Normalization Form C] (http://www.unicode.org/reports/tr15/).
- May not contain any of the following ASCII characters: ‘/’, ‘:’, ‘?’, ‘,’, or ‘#’.
trip: Option<Trip>Required. Trip entity to create.
When creating a Trip, the following fields are required:
trip_typepickup_point
The following fields are used if you provide them:
number_of_passengersvehicle_iddropoff_pointintermediate_destinationsvehicle_waypoints
All other Trip fields are ignored. For example, all trips start with a
trip_status of NEW even if you pass in a trip_status of CANCELED in
the creation request.
Only EXCLUSIVE trips support intermediate_destinations.
When vehicle_id is set for a shared trip, you must supply
the list of Trip.vehicle_waypoints to specify the order of the remaining
waypoints for the vehicle, otherwise the waypoint order will be
undetermined.
When you specify Trip.vehicle_waypoints, the list must contain all
the remaining waypoints of the vehicle’s trips, with no extra waypoints.
You must order these waypoints such that for a given trip, the pickup
point is before intermediate destinations, and all intermediate
destinations come before the drop-off point. An EXCLUSIVE trip’s
waypoints must not interleave with any other trips.
The trip_id, waypoint_type and location fields are used, and all
other TripWaypoint fields in vehicle_waypoints are ignored.
Trait Implementations§
source§impl Clone for CreateTripRequest
impl Clone for CreateTripRequest
source§fn clone(&self) -> CreateTripRequest
fn clone(&self) -> CreateTripRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateTripRequest
impl Debug for CreateTripRequest
source§impl Default for CreateTripRequest
impl Default for CreateTripRequest
source§impl Message for CreateTripRequest
impl Message for CreateTripRequest
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 CreateTripRequest
impl PartialEq for CreateTripRequest
source§fn eq(&self, other: &CreateTripRequest) -> bool
fn eq(&self, other: &CreateTripRequest) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateTripRequest
Auto Trait Implementations§
impl Freeze for CreateTripRequest
impl RefUnwindSafe for CreateTripRequest
impl Send for CreateTripRequest
impl Sync for CreateTripRequest
impl Unpin for CreateTripRequest
impl UnwindSafe for CreateTripRequest
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