Struct aws_sdk_location::types::RouteMatrixEntryError
source · #[non_exhaustive]pub struct RouteMatrixEntryError {
pub code: RouteMatrixErrorCode,
pub message: Option<String>,
}Expand description
An error corresponding to the calculation of a route between the DeparturePosition and DestinationPosition.
The error code can be one of the following:
-
RouteNotFound- Unable to find a valid route with the given parameters.
-
RouteTooLong- Route calculation went beyond the maximum size of a route and was terminated before completion.
-
PositionsNotFound- One or more of the input positions were not found on the route network.
-
DestinationPositionNotFound- The destination position was not found on the route network.
-
DeparturePositionNotFound- The departure position was not found on the route network.
-
OtherValidationError- The given inputs were not valid or a route was not found. More information is given in the errorMessage
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.code: RouteMatrixErrorCodeThe type of error which occurred for the route calculation.
message: Option<String>A message about the error that occurred for the route calculation.
Implementations§
source§impl RouteMatrixEntryError
impl RouteMatrixEntryError
sourcepub fn builder() -> RouteMatrixEntryErrorBuilder
pub fn builder() -> RouteMatrixEntryErrorBuilder
Creates a new builder-style object to manufacture RouteMatrixEntryError.
Trait Implementations§
source§impl Clone for RouteMatrixEntryError
impl Clone for RouteMatrixEntryError
source§fn clone(&self) -> RouteMatrixEntryError
fn clone(&self) -> RouteMatrixEntryError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RouteMatrixEntryError
impl Debug for RouteMatrixEntryError
source§impl PartialEq for RouteMatrixEntryError
impl PartialEq for RouteMatrixEntryError
source§fn eq(&self, other: &RouteMatrixEntryError) -> bool
fn eq(&self, other: &RouteMatrixEntryError) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RouteMatrixEntryError
Auto Trait Implementations§
impl Freeze for RouteMatrixEntryError
impl RefUnwindSafe for RouteMatrixEntryError
impl Send for RouteMatrixEntryError
impl Sync for RouteMatrixEntryError
impl Unpin for RouteMatrixEntryError
impl UnwindSafe for RouteMatrixEntryError
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