pub struct BookingCustomAttributeUpsertRequest {
pub booking_id: String,
pub custom_attribute: Box<CustomAttribute>,
pub idempotency_key: Option<Option<String>>,
}Expand description
BookingCustomAttributeUpsertRequest : Represents an individual upsert request in a BulkUpsertBookingCustomAttributes request. An individual request contains a booking ID, the custom attribute to create or update, and an optional idempotency key.
Fields§
§booking_id: StringThe ID of the target booking.
custom_attribute: Box<CustomAttribute>§idempotency_key: Option<Option<String>>A unique identifier for this individual upsert request, used to ensure idempotency. For more information, see Idempotency.
Implementations§
Source§impl BookingCustomAttributeUpsertRequest
impl BookingCustomAttributeUpsertRequest
Sourcepub fn new(
booking_id: String,
custom_attribute: CustomAttribute,
) -> BookingCustomAttributeUpsertRequest
pub fn new( booking_id: String, custom_attribute: CustomAttribute, ) -> BookingCustomAttributeUpsertRequest
Represents an individual upsert request in a BulkUpsertBookingCustomAttributes request. An individual request contains a booking ID, the custom attribute to create or update, and an optional idempotency key.
Trait Implementations§
Source§impl Clone for BookingCustomAttributeUpsertRequest
impl Clone for BookingCustomAttributeUpsertRequest
Source§fn clone(&self) -> BookingCustomAttributeUpsertRequest
fn clone(&self) -> BookingCustomAttributeUpsertRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for BookingCustomAttributeUpsertRequest
impl Default for BookingCustomAttributeUpsertRequest
Source§fn default() -> BookingCustomAttributeUpsertRequest
fn default() -> BookingCustomAttributeUpsertRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BookingCustomAttributeUpsertRequest
impl<'de> Deserialize<'de> for BookingCustomAttributeUpsertRequest
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
impl StructuralPartialEq for BookingCustomAttributeUpsertRequest
Auto Trait Implementations§
impl Freeze for BookingCustomAttributeUpsertRequest
impl RefUnwindSafe for BookingCustomAttributeUpsertRequest
impl Send for BookingCustomAttributeUpsertRequest
impl Sync for BookingCustomAttributeUpsertRequest
impl Unpin for BookingCustomAttributeUpsertRequest
impl UnsafeUnpin for BookingCustomAttributeUpsertRequest
impl UnwindSafe for BookingCustomAttributeUpsertRequest
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