Struct amazon_sp_services::models::reservation::Reservation
source · [−]pub struct Reservation {
pub reservation_id: Option<String>,
pub _type: Type,
pub availability: Box<AvailabilityRecord>,
}Expand description
Reservation : Reservation object reduces the capacity of a resource.
Fields
reservation_id: Option<String>Unique identifier for a reservation. If present, it is treated as an update reservation request and will update the corresponding reservation. Otherwise, it is treated as a new create reservation request.
_type: TypeType of reservation.
availability: Box<AvailabilityRecord>Implementations
sourceimpl Reservation
impl Reservation
sourcepub fn new(_type: Type, availability: AvailabilityRecord) -> Reservation
pub fn new(_type: Type, availability: AvailabilityRecord) -> Reservation
Reservation object reduces the capacity of a resource.
Trait Implementations
sourceimpl Clone for Reservation
impl Clone for Reservation
sourcefn clone(&self) -> Reservation
fn clone(&self) -> Reservation
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 moresourceimpl Debug for Reservation
impl Debug for Reservation
sourceimpl Default for Reservation
impl Default for Reservation
sourcefn default() -> Reservation
fn default() -> Reservation
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Reservation
impl<'de> Deserialize<'de> for Reservation
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<Reservation> for Reservation
impl PartialEq<Reservation> for Reservation
sourcefn eq(&self, other: &Reservation) -> bool
fn eq(&self, other: &Reservation) -> bool
sourceimpl Serialize for Reservation
impl Serialize for Reservation
impl StructuralPartialEq for Reservation
Auto Trait Implementations
impl RefUnwindSafe for Reservation
impl Send for Reservation
impl Sync for Reservation
impl Unpin for Reservation
impl UnwindSafe for Reservation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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