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