#[non_exhaustive]pub struct CalculateRouteMatrixSummary {
pub data_source: String,
pub route_count: i32,
pub error_count: i32,
pub distance_unit: DistanceUnit,
}Expand description
A summary of the calculated route matrix.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data_source: StringThe data provider of traffic and road network data used to calculate the routes. Indicates one of the available providers:
-
Esri -
Grab -
Here
For more information about data providers, see Amazon Location Service data providers.
route_count: i32The count of cells in the route matrix. Equal to the number of DeparturePositions multiplied by the number of DestinationPositions.
error_count: i32The count of error results in the route matrix. If this number is 0, all routes were calculated successfully.
distance_unit: DistanceUnitThe unit of measurement for route distances.
Implementations§
source§impl CalculateRouteMatrixSummary
impl CalculateRouteMatrixSummary
sourcepub fn data_source(&self) -> &str
pub fn data_source(&self) -> &str
The data provider of traffic and road network data used to calculate the routes. Indicates one of the available providers:
-
Esri -
Grab -
Here
For more information about data providers, see Amazon Location Service data providers.
sourcepub fn route_count(&self) -> i32
pub fn route_count(&self) -> i32
The count of cells in the route matrix. Equal to the number of DeparturePositions multiplied by the number of DestinationPositions.
sourcepub fn error_count(&self) -> i32
pub fn error_count(&self) -> i32
The count of error results in the route matrix. If this number is 0, all routes were calculated successfully.
sourcepub fn distance_unit(&self) -> &DistanceUnit
pub fn distance_unit(&self) -> &DistanceUnit
The unit of measurement for route distances.
source§impl CalculateRouteMatrixSummary
impl CalculateRouteMatrixSummary
sourcepub fn builder() -> CalculateRouteMatrixSummaryBuilder
pub fn builder() -> CalculateRouteMatrixSummaryBuilder
Creates a new builder-style object to manufacture CalculateRouteMatrixSummary.
Trait Implementations§
source§impl Clone for CalculateRouteMatrixSummary
impl Clone for CalculateRouteMatrixSummary
source§fn clone(&self) -> CalculateRouteMatrixSummary
fn clone(&self) -> CalculateRouteMatrixSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CalculateRouteMatrixSummary
impl Debug for CalculateRouteMatrixSummary
source§impl PartialEq for CalculateRouteMatrixSummary
impl PartialEq for CalculateRouteMatrixSummary
source§fn eq(&self, other: &CalculateRouteMatrixSummary) -> bool
fn eq(&self, other: &CalculateRouteMatrixSummary) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CalculateRouteMatrixSummary
Auto Trait Implementations§
impl Freeze for CalculateRouteMatrixSummary
impl RefUnwindSafe for CalculateRouteMatrixSummary
impl Send for CalculateRouteMatrixSummary
impl Sync for CalculateRouteMatrixSummary
impl Unpin for CalculateRouteMatrixSummary
impl UnwindSafe for CalculateRouteMatrixSummary
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more