square_api_client/models/list_subscription_events_response.rs
1//! Response body struct for the List Subscription Events API
2
3use serde::Deserialize;
4
5use super::{errors::Error, SubscriptionEvent};
6
7/// This is a model struct for ListSubscriptionEventsResponse type
8#[derive(Clone, Debug, Deserialize, Eq, PartialEq)]
9pub struct ListSubscriptionEventsResponse {
10 /// Errors encountered during the request.
11 pub errors: Option<Vec<Error>>,
12 /// The retrieved subscription events.
13 pub subscription_events: Option<Vec<SubscriptionEvent>>,
14 /// When the total number of resulting subscription events exceeds the limit of a paged
15 /// response, the response includes a cursor for you to use in a subsequent request to fetch the
16 /// next set of events. If the cursor is unset, the response contains the last page of the
17 /// results.
18 ///
19 /// For more information, see
20 /// [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination).
21 pub cursor: Option<String>,
22}