Struct google_api_proto::maps::fleetengine::delivery::v1::UpdateTaskRequest
source · pub struct UpdateTaskRequest {
pub header: Option<DeliveryRequestHeader>,
pub task: Option<Task>,
pub update_mask: Option<FieldMask>,
}
Expand description
The UpdateTask
request message.
Fields§
§header: Option<DeliveryRequestHeader>
Optional. The standard Delivery API request header.
task: Option<Task>
Required. The Task associated with the update.
The following fields are maintained by Fleet Engine. Do not update
them using Task.update
.
last_location
.last_location_snappable
.name
.remaining_vehicle_journey_segments
.task_outcome_location_source
.
Note: You cannot change the value of task_outcome
once you set it.
If the Task has been assigned to a delivery vehicle, then don’t set the
Task state to CLOSED using Task.update
. Instead, remove the VehicleStop
that contains the Task from the delivery vehicle, which automatically sets
the Task state to CLOSED.
update_mask: Option<FieldMask>
Required. The field mask that indicates which Task fields to update.
Note: The update_mask
must contain at least one field.
This is a comma-separated list of fully qualified names of fields. Example:
"task_outcome,task_outcome_time,task_outcome_location"
.
Trait Implementations§
source§impl Clone for UpdateTaskRequest
impl Clone for UpdateTaskRequest
source§fn clone(&self) -> UpdateTaskRequest
fn clone(&self) -> UpdateTaskRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateTaskRequest
impl Debug for UpdateTaskRequest
source§impl Default for UpdateTaskRequest
impl Default for UpdateTaskRequest
source§impl Message for UpdateTaskRequest
impl Message for UpdateTaskRequest
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 UpdateTaskRequest
impl PartialEq for UpdateTaskRequest
source§fn eq(&self, other: &UpdateTaskRequest) -> bool
fn eq(&self, other: &UpdateTaskRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateTaskRequest
Auto Trait Implementations§
impl Freeze for UpdateTaskRequest
impl RefUnwindSafe for UpdateTaskRequest
impl Send for UpdateTaskRequest
impl Sync for UpdateTaskRequest
impl Unpin for UpdateTaskRequest
impl UnwindSafe for UpdateTaskRequest
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