Struct aws_sdk_sesv2::types::MetricDataError
source · #[non_exhaustive]pub struct MetricDataError {
pub id: Option<String>,
pub code: Option<QueryErrorCode>,
pub message: Option<String>,
}
Expand description
An error corresponding to the unsuccessful processing of a single metric data query.
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.id: Option<String>
The query identifier.
code: Option<QueryErrorCode>
The query error code. Can be one of:
-
INTERNAL_FAILURE
– Amazon SES has failed to process one of the queries. -
ACCESS_DENIED
– You have insufficient access to retrieve metrics based on the given query.
message: Option<String>
The error message associated with the current query error.
Implementations§
source§impl MetricDataError
impl MetricDataError
sourcepub fn code(&self) -> Option<&QueryErrorCode>
pub fn code(&self) -> Option<&QueryErrorCode>
The query error code. Can be one of:
-
INTERNAL_FAILURE
– Amazon SES has failed to process one of the queries. -
ACCESS_DENIED
– You have insufficient access to retrieve metrics based on the given query.
source§impl MetricDataError
impl MetricDataError
sourcepub fn builder() -> MetricDataErrorBuilder
pub fn builder() -> MetricDataErrorBuilder
Creates a new builder-style object to manufacture MetricDataError
.
Trait Implementations§
source§impl Clone for MetricDataError
impl Clone for MetricDataError
source§fn clone(&self) -> MetricDataError
fn clone(&self) -> MetricDataError
Returns a copy 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 MetricDataError
impl Debug for MetricDataError
source§impl PartialEq for MetricDataError
impl PartialEq for MetricDataError
source§fn eq(&self, other: &MetricDataError) -> bool
fn eq(&self, other: &MetricDataError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricDataError
Auto Trait Implementations§
impl Freeze for MetricDataError
impl RefUnwindSafe for MetricDataError
impl Send for MetricDataError
impl Sync for MetricDataError
impl Unpin for MetricDataError
impl UnwindSafe for MetricDataError
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
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.