square_api_client/models/list_gift_cards_response.rs
1//! Response struct for the List Gift Cards API
2
3use serde::Deserialize;
4
5use super::{errors::Error, GiftCard};
6
7/// This is a model struct for ListGiftCardsResponse type
8#[derive(Clone, Debug, Deserialize, Eq, PartialEq)]
9pub struct ListGiftCardsResponse {
10 /// Any errors that occurred during the request.
11 pub errors: Option<Vec<Error>>,
12 /// The requested gift cards or an empty object if none are found.
13 pub gift_cards: Option<Vec<GiftCard>>,
14 /// When a response is truncated, it includes a cursor that you can use in a subsequent request
15 /// to retrieve the next set of gift cards. If a cursor is not present, this is the final
16 /// response. For more information, see
17 /// [Pagination](https://developer.squareup.com/docs/basics/api101/pagination).
18 pub cursor: Option<String>,
19}