Struct aws_sdk_ec2::types::ReservationValue
source · #[non_exhaustive]pub struct ReservationValue {
pub hourly_price: Option<String>,
pub remaining_total_value: Option<String>,
pub remaining_upfront_value: Option<String>,
}
Expand description
The cost associated with the 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.hourly_price: Option<String>
The hourly rate of the reservation.
remaining_total_value: Option<String>
The balance of the total value (the sum of remainingUpfrontValue + hourlyPrice * number of hours remaining).
remaining_upfront_value: Option<String>
The remaining upfront cost of the reservation.
Implementations§
source§impl ReservationValue
impl ReservationValue
sourcepub fn hourly_price(&self) -> Option<&str>
pub fn hourly_price(&self) -> Option<&str>
The hourly rate of the reservation.
sourcepub fn remaining_total_value(&self) -> Option<&str>
pub fn remaining_total_value(&self) -> Option<&str>
The balance of the total value (the sum of remainingUpfrontValue + hourlyPrice * number of hours remaining).
sourcepub fn remaining_upfront_value(&self) -> Option<&str>
pub fn remaining_upfront_value(&self) -> Option<&str>
The remaining upfront cost of the reservation.
source§impl ReservationValue
impl ReservationValue
sourcepub fn builder() -> ReservationValueBuilder
pub fn builder() -> ReservationValueBuilder
Creates a new builder-style object to manufacture ReservationValue
.
Trait Implementations§
source§impl Clone for ReservationValue
impl Clone for ReservationValue
source§fn clone(&self) -> ReservationValue
fn clone(&self) -> ReservationValue
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 ReservationValue
impl Debug for ReservationValue
source§impl PartialEq for ReservationValue
impl PartialEq for ReservationValue
source§fn eq(&self, other: &ReservationValue) -> bool
fn eq(&self, other: &ReservationValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReservationValue
Auto Trait Implementations§
impl Freeze for ReservationValue
impl RefUnwindSafe for ReservationValue
impl Send for ReservationValue
impl Sync for ReservationValue
impl Unpin for ReservationValue
impl UnwindSafe for ReservationValue
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.