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§
Source§impl 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§
Source§impl Clone for CreateReservationRecord
impl Clone for CreateReservationRecord
Source§fn clone(&self) -> CreateReservationRecord
fn clone(&self) -> CreateReservationRecord
Returns a duplicate 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 CreateReservationRecord
impl Debug for CreateReservationRecord
Source§impl Default for CreateReservationRecord
impl Default for CreateReservationRecord
Source§fn default() -> CreateReservationRecord
fn default() -> CreateReservationRecord
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateReservationRecord
impl<'de> Deserialize<'de> for CreateReservationRecord
Source§fn 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
Source§impl PartialEq for CreateReservationRecord
impl PartialEq for CreateReservationRecord
Source§impl Serialize for CreateReservationRecord
impl Serialize for CreateReservationRecord
impl StructuralPartialEq for CreateReservationRecord
Auto Trait Implementations§
impl Freeze for CreateReservationRecord
impl RefUnwindSafe for CreateReservationRecord
impl Send for CreateReservationRecord
impl Sync for CreateReservationRecord
impl Unpin for CreateReservationRecord
impl UnsafeUnpin for CreateReservationRecord
impl UnwindSafe for CreateReservationRecord
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