Struct aws_sdk_ec2::types::PriceScheduleSpecification
source · #[non_exhaustive]pub struct PriceScheduleSpecification {
pub currency_code: Option<CurrencyCodeValues>,
pub price: Option<f64>,
pub term: Option<i64>,
}
Expand description
Describes the price for a Reserved Instance.
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.currency_code: Option<CurrencyCodeValues>
The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD
.
price: Option<f64>
The fixed price for the term.
term: Option<i64>
The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.
Implementations§
source§impl PriceScheduleSpecification
impl PriceScheduleSpecification
sourcepub fn currency_code(&self) -> Option<&CurrencyCodeValues>
pub fn currency_code(&self) -> Option<&CurrencyCodeValues>
The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD
.
source§impl PriceScheduleSpecification
impl PriceScheduleSpecification
sourcepub fn builder() -> PriceScheduleSpecificationBuilder
pub fn builder() -> PriceScheduleSpecificationBuilder
Creates a new builder-style object to manufacture PriceScheduleSpecification
.
Trait Implementations§
source§impl Clone for PriceScheduleSpecification
impl Clone for PriceScheduleSpecification
source§fn clone(&self) -> PriceScheduleSpecification
fn clone(&self) -> PriceScheduleSpecification
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 PriceScheduleSpecification
impl Debug for PriceScheduleSpecification
source§impl PartialEq<PriceScheduleSpecification> for PriceScheduleSpecification
impl PartialEq<PriceScheduleSpecification> for PriceScheduleSpecification
source§fn eq(&self, other: &PriceScheduleSpecification) -> bool
fn eq(&self, other: &PriceScheduleSpecification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PriceScheduleSpecification
Auto Trait Implementations§
impl RefUnwindSafe for PriceScheduleSpecification
impl Send for PriceScheduleSpecification
impl Sync for PriceScheduleSpecification
impl Unpin for PriceScheduleSpecification
impl UnwindSafe for PriceScheduleSpecification
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