squareup/models/
create_booking_request.rs

1//! Request struct for the Create Booking API
2
3use crate::models::Booking;
4use serde::Serialize;
5
6/// This is a model class for CreateBookingRequest type.
7#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize)]
8pub struct CreateBookingRequest {
9    /// A unique key to make this request an idempotent operation.
10    /// Max Length 255
11    pub idempotency_key: Option<String>,
12    /// The details of the booking to be created.
13    pub booking: Booking,
14}