pub struct CreateReservationRecord {
pub reservation: Option<Box<Reservation>>,
pub warnings: Option<Vec<Warning>>,
pub errors: Option<Vec<Error>>,
}Expand description
CreateReservationRecord : CreateReservationRecord entity contains the Reservation if there is an error/warning while performing the requested operation on it, otherwise it will contain the new reservationId.
Fields
reservation: Option<Box<Reservation>>warnings: Option<Vec<Warning>>A list of warnings returned in the sucessful execution response of an API request.
errors: Option<Vec<Error>>A list of error responses returned when a request is unsuccessful.
Implementations
sourceimpl CreateReservationRecord
impl CreateReservationRecord
sourcepub fn new() -> CreateReservationRecord
pub fn new() -> CreateReservationRecord
CreateReservationRecord entity contains the Reservation if there is an error/warning while performing the requested operation on it, otherwise it will contain the new reservationId.
Trait Implementations
sourceimpl Clone for CreateReservationRecord
impl Clone for CreateReservationRecord
sourcefn clone(&self) -> CreateReservationRecord
fn clone(&self) -> CreateReservationRecord
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 CreateReservationRecord
impl Debug for CreateReservationRecord
sourceimpl Default for CreateReservationRecord
impl Default for CreateReservationRecord
sourcefn default() -> CreateReservationRecord
fn default() -> CreateReservationRecord
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CreateReservationRecord
impl<'de> Deserialize<'de> for CreateReservationRecord
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<CreateReservationRecord> for CreateReservationRecord
impl PartialEq<CreateReservationRecord> for CreateReservationRecord
sourcefn eq(&self, other: &CreateReservationRecord) -> bool
fn eq(&self, other: &CreateReservationRecord) -> bool
sourceimpl Serialize for CreateReservationRecord
impl Serialize for CreateReservationRecord
impl StructuralPartialEq for CreateReservationRecord
Auto Trait Implementations
impl RefUnwindSafe for CreateReservationRecord
impl Send for CreateReservationRecord
impl Sync for CreateReservationRecord
impl Unpin for CreateReservationRecord
impl UnwindSafe for CreateReservationRecord
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