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