squareup/models/
bulk_retrieve_bookings_response.rs

1//! Response body struct for the Bulk Retrieve Bookings API
2
3use crate::models::RetrieveBookingResponse;
4use serde::Deserialize;
5use std::collections::HashMap;
6
7use super::errors::Error;
8
9/// This is a model struct for the BulkRetrieveBookingsResponse type.
10#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
11pub struct BulkRetrieveBookingsResponse {
12    /// Requested bookings returned as a map containing booking_id as the key and
13    /// [RetrieveBookingResponse] as the value.
14    pub bookings: Option<HashMap<String, RetrieveBookingResponse>>,
15    /// Errors encountered during the request.
16    pub errors: Option<Vec<Error>>,
17}