Struct aws_sdk_savingsplans::model::SavingsPlanRate
source · [−]#[non_exhaustive]pub struct SavingsPlanRate {
pub rate: Option<String>,
pub currency: Option<CurrencyCode>,
pub unit: Option<SavingsPlanRateUnit>,
pub product_type: Option<SavingsPlanProductType>,
pub service_code: Option<SavingsPlanRateServiceCode>,
pub usage_type: Option<String>,
pub operation: Option<String>,
pub properties: Option<Vec<SavingsPlanRateProperty>>,
}
Expand description
Information about a Savings Plan rate.
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.rate: Option<String>
The rate.
currency: Option<CurrencyCode>
The currency.
unit: Option<SavingsPlanRateUnit>
The unit.
product_type: Option<SavingsPlanProductType>
The product type.
service_code: Option<SavingsPlanRateServiceCode>
The service.
usage_type: Option<String>
The usage details of the line item in the billing report.
operation: Option<String>
The specific AWS operation for the line item in the billing report.
properties: Option<Vec<SavingsPlanRateProperty>>
The properties.
Implementations
sourceimpl SavingsPlanRate
impl SavingsPlanRate
sourcepub fn currency(&self) -> Option<&CurrencyCode>
pub fn currency(&self) -> Option<&CurrencyCode>
The currency.
sourcepub fn unit(&self) -> Option<&SavingsPlanRateUnit>
pub fn unit(&self) -> Option<&SavingsPlanRateUnit>
The unit.
sourcepub fn product_type(&self) -> Option<&SavingsPlanProductType>
pub fn product_type(&self) -> Option<&SavingsPlanProductType>
The product type.
sourcepub fn service_code(&self) -> Option<&SavingsPlanRateServiceCode>
pub fn service_code(&self) -> Option<&SavingsPlanRateServiceCode>
The service.
sourcepub fn usage_type(&self) -> Option<&str>
pub fn usage_type(&self) -> Option<&str>
The usage details of the line item in the billing report.
sourcepub fn operation(&self) -> Option<&str>
pub fn operation(&self) -> Option<&str>
The specific AWS operation for the line item in the billing report.
sourcepub fn properties(&self) -> Option<&[SavingsPlanRateProperty]>
pub fn properties(&self) -> Option<&[SavingsPlanRateProperty]>
The properties.
sourceimpl SavingsPlanRate
impl SavingsPlanRate
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SavingsPlanRate
Trait Implementations
sourceimpl Clone for SavingsPlanRate
impl Clone for SavingsPlanRate
sourcefn clone(&self) -> SavingsPlanRate
fn clone(&self) -> SavingsPlanRate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SavingsPlanRate
impl Debug for SavingsPlanRate
sourceimpl PartialEq<SavingsPlanRate> for SavingsPlanRate
impl PartialEq<SavingsPlanRate> for SavingsPlanRate
sourcefn eq(&self, other: &SavingsPlanRate) -> bool
fn eq(&self, other: &SavingsPlanRate) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SavingsPlanRate) -> bool
fn ne(&self, other: &SavingsPlanRate) -> bool
This method tests for !=
.
impl StructuralPartialEq for SavingsPlanRate
Auto Trait Implementations
impl RefUnwindSafe for SavingsPlanRate
impl Send for SavingsPlanRate
impl Sync for SavingsPlanRate
impl Unpin for SavingsPlanRate
impl UnwindSafe for SavingsPlanRate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more