Struct google_api_proto::maps::fleetengine::delivery::v1::TaskTrackingInfo
source · pub struct TaskTrackingInfo {Show 14 fields
pub name: String,
pub tracking_id: String,
pub vehicle_location: Option<DeliveryVehicleLocation>,
pub route_polyline_points: Vec<LatLng>,
pub remaining_stop_count: Option<i32>,
pub remaining_driving_distance_meters: Option<i32>,
pub estimated_arrival_time: Option<Timestamp>,
pub estimated_task_completion_time: Option<Timestamp>,
pub state: i32,
pub task_outcome: i32,
pub task_outcome_time: Option<Timestamp>,
pub planned_location: Option<LocationInfo>,
pub target_time_window: Option<TimeWindow>,
pub attributes: Vec<TaskAttribute>,
}
Expand description
The TaskTrackingInfo
message. The message contains task tracking
information which will be used for display. If a tracking ID is associated
with multiple Tasks, Fleet Engine uses a heuristic to decide which Task’s
TaskTrackingInfo to select.
Fields§
§name: String
Must be in the format providers/{provider}/taskTrackingInfo/{tracking}
,
where tracking
represents the tracking ID.
tracking_id: String
Immutable. The tracking ID of a Task.
- 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 ‘#’.
vehicle_location: Option<DeliveryVehicleLocation>
The vehicle’s last location.
route_polyline_points: Vec<LatLng>
A list of points which when connected forms a polyline of the vehicle’s expected route to the location of this task.
remaining_stop_count: Option<i32>
Indicates the number of stops the vehicle remaining until the task stop is reached, including the task stop. For example, if the vehicle’s next stop is the task stop, the value will be 1.
remaining_driving_distance_meters: Option<i32>
The total remaining distance in meters to the VehicleStop
of interest.
estimated_arrival_time: Option<Timestamp>
The timestamp that indicates the estimated arrival time to the stop location.
estimated_task_completion_time: Option<Timestamp>
The timestamp that indicates the estimated completion time of a Task.
state: i32
The current execution state of the Task.
task_outcome: i32
The outcome of attempting to execute a Task.
task_outcome_time: Option<Timestamp>
The timestamp that indicates when the Task’s outcome was set by the provider.
planned_location: Option<LocationInfo>
Immutable. The location where the Task will be completed.
target_time_window: Option<TimeWindow>
The time window during which the task should be completed.
attributes: Vec<TaskAttribute>
The custom attributes set on the task.
Implementations§
source§impl TaskTrackingInfo
impl TaskTrackingInfo
sourcepub fn task_outcome(&self) -> TaskOutcome
pub fn task_outcome(&self) -> TaskOutcome
Returns the enum value of task_outcome
, or the default if the field is set to an invalid enum value.
sourcepub fn set_task_outcome(&mut self, value: TaskOutcome)
pub fn set_task_outcome(&mut self, value: TaskOutcome)
Sets task_outcome
to the provided enum value.
Trait Implementations§
source§impl Clone for TaskTrackingInfo
impl Clone for TaskTrackingInfo
source§fn clone(&self) -> TaskTrackingInfo
fn clone(&self) -> TaskTrackingInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TaskTrackingInfo
impl Debug for TaskTrackingInfo
source§impl Default for TaskTrackingInfo
impl Default for TaskTrackingInfo
source§impl Message for TaskTrackingInfo
impl Message for TaskTrackingInfo
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 TaskTrackingInfo
impl PartialEq for TaskTrackingInfo
source§fn eq(&self, other: &TaskTrackingInfo) -> bool
fn eq(&self, other: &TaskTrackingInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TaskTrackingInfo
Auto Trait Implementations§
impl Freeze for TaskTrackingInfo
impl RefUnwindSafe for TaskTrackingInfo
impl Send for TaskTrackingInfo
impl Sync for TaskTrackingInfo
impl Unpin for TaskTrackingInfo
impl UnwindSafe for TaskTrackingInfo
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