Struct aws_sdk_ec2::operation::get_host_reservation_purchase_preview::GetHostReservationPurchasePreviewOutput
source · #[non_exhaustive]pub struct GetHostReservationPurchasePreviewOutput {
pub currency_code: Option<CurrencyCodeValues>,
pub purchase: Option<Vec<Purchase>>,
pub total_hourly_price: Option<String>,
pub total_upfront_price: Option<String>,
/* private fields */
}
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.currency_code: Option<CurrencyCodeValues>
The currency in which the totalUpfrontPrice
and totalHourlyPrice
amounts are specified. At this time, the only supported currency is USD
.
purchase: Option<Vec<Purchase>>
The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.
total_hourly_price: Option<String>
The potential total hourly price of the reservation per hour.
total_upfront_price: Option<String>
The potential total upfront price. This is billed immediately.
Implementations§
source§impl GetHostReservationPurchasePreviewOutput
impl GetHostReservationPurchasePreviewOutput
sourcepub fn currency_code(&self) -> Option<&CurrencyCodeValues>
pub fn currency_code(&self) -> Option<&CurrencyCodeValues>
The currency in which the totalUpfrontPrice
and totalHourlyPrice
amounts are specified. At this time, the only supported currency is USD
.
sourcepub fn purchase(&self) -> &[Purchase]
pub fn purchase(&self) -> &[Purchase]
The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .purchase.is_none()
.
sourcepub fn total_hourly_price(&self) -> Option<&str>
pub fn total_hourly_price(&self) -> Option<&str>
The potential total hourly price of the reservation per hour.
sourcepub fn total_upfront_price(&self) -> Option<&str>
pub fn total_upfront_price(&self) -> Option<&str>
The potential total upfront price. This is billed immediately.
source§impl GetHostReservationPurchasePreviewOutput
impl GetHostReservationPurchasePreviewOutput
sourcepub fn builder() -> GetHostReservationPurchasePreviewOutputBuilder
pub fn builder() -> GetHostReservationPurchasePreviewOutputBuilder
Creates a new builder-style object to manufacture GetHostReservationPurchasePreviewOutput
.
Trait Implementations§
source§impl Clone for GetHostReservationPurchasePreviewOutput
impl Clone for GetHostReservationPurchasePreviewOutput
source§fn clone(&self) -> GetHostReservationPurchasePreviewOutput
fn clone(&self) -> GetHostReservationPurchasePreviewOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for GetHostReservationPurchasePreviewOutput
impl PartialEq for GetHostReservationPurchasePreviewOutput
source§fn eq(&self, other: &GetHostReservationPurchasePreviewOutput) -> bool
fn eq(&self, other: &GetHostReservationPurchasePreviewOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetHostReservationPurchasePreviewOutput
impl RequestId for GetHostReservationPurchasePreviewOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for GetHostReservationPurchasePreviewOutput
Auto Trait Implementations§
impl Freeze for GetHostReservationPurchasePreviewOutput
impl RefUnwindSafe for GetHostReservationPurchasePreviewOutput
impl Send for GetHostReservationPurchasePreviewOutput
impl Sync for GetHostReservationPurchasePreviewOutput
impl Unpin for GetHostReservationPurchasePreviewOutput
impl UnwindSafe for GetHostReservationPurchasePreviewOutput
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
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>
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>
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 more