pub struct PurchaseHostReservationRequest {
pub client_token: Option<String>,
pub currency_code: Option<String>,
pub host_id_set: Vec<String>,
pub limit_price: Option<String>,
pub offering_id: String,
pub tag_specifications: Option<Vec<TagSpecification>>,
}
Fields
client_token: Option<String>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
currency_code: Option<String>
The currency in which the totalUpfrontPrice
, LimitPrice
, and totalHourlyPrice
amounts are specified. At this time, the only supported currency is USD
.
host_id_set: Vec<String>
The IDs of the Dedicated Hosts with which the reservation will be associated.
limit_price: Option<String>
The specified limit is checked against the total upfront cost of the reservation (calculated as the offering's upfront cost multiplied by the host count). If the total upfront cost is greater than the specified price limit, the request fails. This is used to ensure that the purchase does not exceed the expected upfront cost of the purchase. At this time, the only supported currency is USD
. For example, to indicate a limit price of USD 100, specify 100.00.
offering_id: String
The ID of the offering.
tag_specifications: Option<Vec<TagSpecification>>
The tags to apply to the Dedicated Host Reservation during purchase.
Trait Implementations
sourceimpl Clone for PurchaseHostReservationRequest
impl Clone for PurchaseHostReservationRequest
sourcefn clone(&self) -> PurchaseHostReservationRequest
fn clone(&self) -> PurchaseHostReservationRequest
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 Default for PurchaseHostReservationRequest
impl Default for PurchaseHostReservationRequest
sourcefn default() -> PurchaseHostReservationRequest
fn default() -> PurchaseHostReservationRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<PurchaseHostReservationRequest> for PurchaseHostReservationRequest
impl PartialEq<PurchaseHostReservationRequest> for PurchaseHostReservationRequest
sourcefn eq(&self, other: &PurchaseHostReservationRequest) -> bool
fn eq(&self, other: &PurchaseHostReservationRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PurchaseHostReservationRequest) -> bool
fn ne(&self, other: &PurchaseHostReservationRequest) -> bool
This method tests for !=
.
impl StructuralPartialEq for PurchaseHostReservationRequest
Auto Trait Implementations
impl RefUnwindSafe for PurchaseHostReservationRequest
impl Send for PurchaseHostReservationRequest
impl Sync for PurchaseHostReservationRequest
impl Unpin for PurchaseHostReservationRequest
impl UnwindSafe for PurchaseHostReservationRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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