Struct aws_sdk_ec2::types::DataResponse
source · #[non_exhaustive]pub struct DataResponse {
pub id: Option<String>,
pub source: Option<String>,
pub destination: Option<String>,
pub metric: Option<MetricType>,
pub statistic: Option<StatisticType>,
pub period: Option<PeriodType>,
pub metric_points: Option<Vec<MetricPoint>>,
}
Expand description
The response to a DataQuery
.
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.id: Option<String>
The ID passed in the DataQuery
.
source: Option<String>
The Region or Availability Zone that's the source for the data query. For example, us-east-1
.
destination: Option<String>
The Region or Availability Zone that's the destination for the data query. For example, eu-west-1
.
metric: Option<MetricType>
The metric used for the network performance request. Only aggregate-latency
is supported, which shows network latency during a specified period.
statistic: Option<StatisticType>
The statistic used for the network performance request.
period: Option<PeriodType>
The period used for the network performance request.
metric_points: Option<Vec<MetricPoint>>
A list of MetricPoint
objects.
Implementations§
source§impl DataResponse
impl DataResponse
sourcepub fn source(&self) -> Option<&str>
pub fn source(&self) -> Option<&str>
The Region or Availability Zone that's the source for the data query. For example, us-east-1
.
sourcepub fn destination(&self) -> Option<&str>
pub fn destination(&self) -> Option<&str>
The Region or Availability Zone that's the destination for the data query. For example, eu-west-1
.
sourcepub fn metric(&self) -> Option<&MetricType>
pub fn metric(&self) -> Option<&MetricType>
The metric used for the network performance request. Only aggregate-latency
is supported, which shows network latency during a specified period.
sourcepub fn statistic(&self) -> Option<&StatisticType>
pub fn statistic(&self) -> Option<&StatisticType>
The statistic used for the network performance request.
sourcepub fn period(&self) -> Option<&PeriodType>
pub fn period(&self) -> Option<&PeriodType>
The period used for the network performance request.
sourcepub fn metric_points(&self) -> &[MetricPoint]
pub fn metric_points(&self) -> &[MetricPoint]
A list of MetricPoint
objects.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .metric_points.is_none()
.
source§impl DataResponse
impl DataResponse
sourcepub fn builder() -> DataResponseBuilder
pub fn builder() -> DataResponseBuilder
Creates a new builder-style object to manufacture DataResponse
.
Trait Implementations§
source§impl Clone for DataResponse
impl Clone for DataResponse
source§fn clone(&self) -> DataResponse
fn clone(&self) -> DataResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DataResponse
impl Debug for DataResponse
source§impl PartialEq for DataResponse
impl PartialEq for DataResponse
source§fn eq(&self, other: &DataResponse) -> bool
fn eq(&self, other: &DataResponse) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DataResponse
Auto Trait Implementations§
impl Freeze for DataResponse
impl RefUnwindSafe for DataResponse
impl Send for DataResponse
impl Sync for DataResponse
impl Unpin for DataResponse
impl UnwindSafe for DataResponse
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> 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