Struct aws_sdk_savingsplans::model::SavingsPlanOffering
source · [−]#[non_exhaustive]pub struct SavingsPlanOffering {
pub offering_id: Option<String>,
pub product_types: Option<Vec<SavingsPlanProductType>>,
pub plan_type: Option<SavingsPlanType>,
pub description: Option<String>,
pub payment_option: Option<SavingsPlanPaymentOption>,
pub duration_seconds: i64,
pub currency: Option<CurrencyCode>,
pub service_code: Option<String>,
pub usage_type: Option<String>,
pub operation: Option<String>,
pub properties: Option<Vec<SavingsPlanOfferingProperty>>,
}
Expand description
Information about a Savings Plan offering.
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.offering_id: Option<String>
The ID of the offering.
product_types: Option<Vec<SavingsPlanProductType>>
The product type.
plan_type: Option<SavingsPlanType>
The plan type.
description: Option<String>
The description.
payment_option: Option<SavingsPlanPaymentOption>
The payment option.
duration_seconds: i64
The duration, in seconds.
currency: Option<CurrencyCode>
The currency.
service_code: Option<String>
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<SavingsPlanOfferingProperty>>
The properties.
Implementations
sourceimpl SavingsPlanOffering
impl SavingsPlanOffering
sourcepub fn offering_id(&self) -> Option<&str>
pub fn offering_id(&self) -> Option<&str>
The ID of the offering.
sourcepub fn product_types(&self) -> Option<&[SavingsPlanProductType]>
pub fn product_types(&self) -> Option<&[SavingsPlanProductType]>
The product type.
sourcepub fn plan_type(&self) -> Option<&SavingsPlanType>
pub fn plan_type(&self) -> Option<&SavingsPlanType>
The plan type.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description.
sourcepub fn payment_option(&self) -> Option<&SavingsPlanPaymentOption>
pub fn payment_option(&self) -> Option<&SavingsPlanPaymentOption>
The payment option.
sourcepub fn duration_seconds(&self) -> i64
pub fn duration_seconds(&self) -> i64
The duration, in seconds.
sourcepub fn currency(&self) -> Option<&CurrencyCode>
pub fn currency(&self) -> Option<&CurrencyCode>
The currency.
sourcepub fn service_code(&self) -> Option<&str>
pub fn service_code(&self) -> Option<&str>
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<&[SavingsPlanOfferingProperty]>
pub fn properties(&self) -> Option<&[SavingsPlanOfferingProperty]>
The properties.
sourceimpl SavingsPlanOffering
impl SavingsPlanOffering
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SavingsPlanOffering
Trait Implementations
sourceimpl Clone for SavingsPlanOffering
impl Clone for SavingsPlanOffering
sourcefn clone(&self) -> SavingsPlanOffering
fn clone(&self) -> SavingsPlanOffering
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 SavingsPlanOffering
impl Debug for SavingsPlanOffering
sourceimpl PartialEq<SavingsPlanOffering> for SavingsPlanOffering
impl PartialEq<SavingsPlanOffering> for SavingsPlanOffering
sourcefn eq(&self, other: &SavingsPlanOffering) -> bool
fn eq(&self, other: &SavingsPlanOffering) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SavingsPlanOffering) -> bool
fn ne(&self, other: &SavingsPlanOffering) -> bool
This method tests for !=
.
impl StructuralPartialEq for SavingsPlanOffering
Auto Trait Implementations
impl RefUnwindSafe for SavingsPlanOffering
impl Send for SavingsPlanOffering
impl Sync for SavingsPlanOffering
impl Unpin for SavingsPlanOffering
impl UnwindSafe for SavingsPlanOffering
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