/// Instantiates a new vehicle associated with an on-demand rideshare or
/// deliveries provider. Each `Vehicle` must have a unique vehicle ID.
///
/// The following `Vehicle` fields are required when creating a `Vehicle`:
///
/// * `vehicleState`
/// * `supportedTripTypes`
/// * `maximumCapacity`
/// * `vehicleType`
///
/// The following `Vehicle` fields are ignored when creating a `Vehicle`:
///
/// * `name`
/// * `currentTrips`
/// * `availableCapacity`
/// * `current_route_segment`
/// * `current_route_segment_end_point`
/// * `current_route_segment_version`
/// * `current_route_segment_traffic`
/// * `route`
/// * `waypoints`
/// * `waypoints_version`
/// * `remaining_distance_meters`
/// * `remaining_time_seconds`
/// * `eta_to_next_waypoint`
/// * `navigation_status`
///
/// All other fields are optional and used if provided.
Instantiates a new vehicle associated with an on-demand rideshare or
deliveries provider. Each `Vehicle` must have a unique vehicle ID.

The following `Vehicle` fields are required when creating a `Vehicle`.



The following `Vehicle` fields are ignored when creating a `Vehicle`.



All other fields are optional and used if provided.
Instantiates a new vehicle associated with an on - demand rideshare or deliveries provider . Each ` Vehicle ` must have a unique vehicle ID . The following ` Vehicle ` fields are required when creating a ` Vehicle ` . The following ` Vehicle ` fields are ignored when creating a ` Vehicle ` . All other fields are optional and used if provided .
pub async fn create_vehicle(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateVehicleRequest>,
        ) -> Result<tonic::Response<super::Vehicle>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/maps.fleetengine.v1.VehicleService/CreateVehicle",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
pub async fn create_vehicle ( & mut self , request : impl tonic :: IntoRequest < super :: CreateVehicleRequest > , ) -> Result < tonic :: Response < super :: Vehicle > , tonic :: Status > { self . inner . ready ( ) . await . map_err ( | e | { tonic :: Status :: new ( tonic :: Code :: Unknown , format ! ( " " e into ( ) ) , ) } ) ? ; let codec = tonic :: codec :: ProstCodec :: default ( ) ; let path = http :: uri :: PathAndQuery :: from_static ( " " , ) ; self . inner . unary ( request . into_request ( ) , path , codec ) . await }
Instantiates a new vehicle associated with an on-demand rideshare or
deliveries provider.
Instantiates a new vehicle associated with an on - demand rideshare or deliveries provider .
&mut self
request
impl tonic::IntoRequest<super::CreateVehicleRequest>