#[non_exhaustive]pub struct DurationDistanceMatrix {
pub rows: Vec<Row>,
pub vehicle_start_tag: String,
/* private fields */
}Expand description
Specifies a duration and distance matrix from visit and vehicle start locations to visit and vehicle end locations.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rows: Vec<Row>Specifies the rows of the duration and distance matrix. It must have as many elements as ShipmentModel.duration_distance_matrix_src_tags.
vehicle_start_tag: StringTag defining to which vehicles this duration and distance matrix applies. If empty, this applies to all vehicles, and there can only be a single matrix.
Each vehicle start must match exactly one matrix, i.e. exactly one of
their start_tags field must match the vehicle_start_tag of a matrix
(and of that matrix only).
All matrices must have a different vehicle_start_tag.
Implementations§
Source§impl DurationDistanceMatrix
impl DurationDistanceMatrix
pub fn new() -> Self
Sourcepub fn set_vehicle_start_tag<T: Into<String>>(self, v: T) -> Self
pub fn set_vehicle_start_tag<T: Into<String>>(self, v: T) -> Self
Sets the value of vehicle_start_tag.
Trait Implementations§
Source§impl Clone for DurationDistanceMatrix
impl Clone for DurationDistanceMatrix
Source§fn clone(&self) -> DurationDistanceMatrix
fn clone(&self) -> DurationDistanceMatrix
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DurationDistanceMatrix
impl Debug for DurationDistanceMatrix
Source§impl Default for DurationDistanceMatrix
impl Default for DurationDistanceMatrix
Source§fn default() -> DurationDistanceMatrix
fn default() -> DurationDistanceMatrix
Returns the “default value” for a type. Read more
Source§impl Message for DurationDistanceMatrix
impl Message for DurationDistanceMatrix
Source§impl PartialEq for DurationDistanceMatrix
impl PartialEq for DurationDistanceMatrix
impl StructuralPartialEq for DurationDistanceMatrix
Auto Trait Implementations§
impl Freeze for DurationDistanceMatrix
impl RefUnwindSafe for DurationDistanceMatrix
impl Send for DurationDistanceMatrix
impl Sync for DurationDistanceMatrix
impl Unpin for DurationDistanceMatrix
impl UnwindSafe for DurationDistanceMatrix
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
Mutably borrows from an owned value. Read more