Struct aws_sdk_ec2::types::Subscription
source · #[non_exhaustive]pub struct Subscription {
pub source: Option<String>,
pub destination: Option<String>,
pub metric: Option<MetricType>,
pub statistic: Option<StatisticType>,
pub period: Option<PeriodType>,
}
Expand description
Describes an Infrastructure Performance subscription.
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.source: Option<String>
The Region or Availability Zone that's the source for the subscription. For example, us-east-1
.
destination: Option<String>
The Region or Availability Zone that's the target for the subscription. For example, eu-west-1
.
metric: Option<MetricType>
The metric used for the subscription.
statistic: Option<StatisticType>
The statistic used for the subscription.
period: Option<PeriodType>
The data aggregation time for the subscription.
Implementations§
source§impl Subscription
impl Subscription
sourcepub fn source(&self) -> Option<&str>
pub fn source(&self) -> Option<&str>
The Region or Availability Zone that's the source for the subscription. 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 target for the subscription. For example, eu-west-1
.
sourcepub fn metric(&self) -> Option<&MetricType>
pub fn metric(&self) -> Option<&MetricType>
The metric used for the subscription.
sourcepub fn statistic(&self) -> Option<&StatisticType>
pub fn statistic(&self) -> Option<&StatisticType>
The statistic used for the subscription.
sourcepub fn period(&self) -> Option<&PeriodType>
pub fn period(&self) -> Option<&PeriodType>
The data aggregation time for the subscription.
source§impl Subscription
impl Subscription
sourcepub fn builder() -> SubscriptionBuilder
pub fn builder() -> SubscriptionBuilder
Creates a new builder-style object to manufacture Subscription
.
Trait Implementations§
source§impl Clone for Subscription
impl Clone for Subscription
source§fn clone(&self) -> Subscription
fn clone(&self) -> Subscription
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 Subscription
impl Debug for Subscription
source§impl PartialEq<Subscription> for Subscription
impl PartialEq<Subscription> for Subscription
source§fn eq(&self, other: &Subscription) -> bool
fn eq(&self, other: &Subscription) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Subscription
Auto Trait Implementations§
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnwindSafe for Subscription
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