Struct google_api_proto::maps::fleetengine::delivery::v1::delivery_service_client::DeliveryServiceClient
source · pub struct DeliveryServiceClient<T> { /* private fields */ }
Expand description
The Last Mile Delivery service.
Implementations§
source§impl<T> DeliveryServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> DeliveryServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> DeliveryServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn create_delivery_vehicle(
&mut self,
request: impl IntoRequest<CreateDeliveryVehicleRequest>,
) -> Result<Response<DeliveryVehicle>, Status>
pub async fn create_delivery_vehicle( &mut self, request: impl IntoRequest<CreateDeliveryVehicleRequest>, ) -> Result<Response<DeliveryVehicle>, Status>
Creates and returns a new DeliveryVehicle
.
sourcepub async fn get_delivery_vehicle(
&mut self,
request: impl IntoRequest<GetDeliveryVehicleRequest>,
) -> Result<Response<DeliveryVehicle>, Status>
pub async fn get_delivery_vehicle( &mut self, request: impl IntoRequest<GetDeliveryVehicleRequest>, ) -> Result<Response<DeliveryVehicle>, Status>
Returns the specified DeliveryVehicle
instance.
sourcepub async fn update_delivery_vehicle(
&mut self,
request: impl IntoRequest<UpdateDeliveryVehicleRequest>,
) -> Result<Response<DeliveryVehicle>, Status>
pub async fn update_delivery_vehicle( &mut self, request: impl IntoRequest<UpdateDeliveryVehicleRequest>, ) -> Result<Response<DeliveryVehicle>, Status>
Writes updated DeliveryVehicle
data to Fleet Engine, and assigns
Tasks
to the DeliveryVehicle
. You cannot update the name of the
DeliveryVehicle
. You can update remaining_vehicle_journey_segments
,
but it must contain all of the VehicleJourneySegment
s to be persisted on
the DeliveryVehicle
. The task_id
s are retrieved from
remaining_vehicle_journey_segments
, and their corresponding Tasks
are
assigned to the DeliveryVehicle
if they have not yet been assigned.
sourcepub async fn batch_create_tasks(
&mut self,
request: impl IntoRequest<BatchCreateTasksRequest>,
) -> Result<Response<BatchCreateTasksResponse>, Status>
pub async fn batch_create_tasks( &mut self, request: impl IntoRequest<BatchCreateTasksRequest>, ) -> Result<Response<BatchCreateTasksResponse>, Status>
Creates and returns a batch of new Task
objects.
sourcepub async fn create_task(
&mut self,
request: impl IntoRequest<CreateTaskRequest>,
) -> Result<Response<Task>, Status>
pub async fn create_task( &mut self, request: impl IntoRequest<CreateTaskRequest>, ) -> Result<Response<Task>, Status>
Creates and returns a new Task
object.
sourcepub async fn get_task(
&mut self,
request: impl IntoRequest<GetTaskRequest>,
) -> Result<Response<Task>, Status>
pub async fn get_task( &mut self, request: impl IntoRequest<GetTaskRequest>, ) -> Result<Response<Task>, Status>
Gets information about a Task
.
sourcepub async fn update_task(
&mut self,
request: impl IntoRequest<UpdateTaskRequest>,
) -> Result<Response<Task>, Status>
pub async fn update_task( &mut self, request: impl IntoRequest<UpdateTaskRequest>, ) -> Result<Response<Task>, Status>
Updates Task
data.
sourcepub async fn list_tasks(
&mut self,
request: impl IntoRequest<ListTasksRequest>,
) -> Result<Response<ListTasksResponse>, Status>
pub async fn list_tasks( &mut self, request: impl IntoRequest<ListTasksRequest>, ) -> Result<Response<ListTasksResponse>, Status>
Gets all Task
s that meet the specified filtering criteria.
sourcepub async fn get_task_tracking_info(
&mut self,
request: impl IntoRequest<GetTaskTrackingInfoRequest>,
) -> Result<Response<TaskTrackingInfo>, Status>
pub async fn get_task_tracking_info( &mut self, request: impl IntoRequest<GetTaskTrackingInfoRequest>, ) -> Result<Response<TaskTrackingInfo>, Status>
Returns the specified TaskTrackingInfo
instance.
sourcepub async fn list_delivery_vehicles(
&mut self,
request: impl IntoRequest<ListDeliveryVehiclesRequest>,
) -> Result<Response<ListDeliveryVehiclesResponse>, Status>
pub async fn list_delivery_vehicles( &mut self, request: impl IntoRequest<ListDeliveryVehiclesRequest>, ) -> Result<Response<ListDeliveryVehiclesResponse>, Status>
Gets all DeliveryVehicle
s that meet the specified filtering criteria.
Trait Implementations§
source§impl<T: Clone> Clone for DeliveryServiceClient<T>
impl<T: Clone> Clone for DeliveryServiceClient<T>
source§fn clone(&self) -> DeliveryServiceClient<T>
fn clone(&self) -> DeliveryServiceClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for DeliveryServiceClient<T>
impl<T> RefUnwindSafe for DeliveryServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for DeliveryServiceClient<T>where
T: Send,
impl<T> Sync for DeliveryServiceClient<T>where
T: Sync,
impl<T> Unpin for DeliveryServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for DeliveryServiceClient<T>where
T: UnwindSafe,
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