square_api_client/models/
list_cards_response.rs

1//! Model struct for ListCardsResponse type
2
3use serde::Deserialize;
4
5use super::{errors::Error, Card};
6
7/// This is a model struct for ListCardsResponse type
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
9pub struct ListCardsResponse {
10    /// Information on errors encountered during the request.
11    pub errors: Option<Vec<Error>>,
12    /// The requested list of `Card`s.
13    pub cards: Option<Vec<Card>>,
14    /// The pagination cursor to be used in a subsequent request. If empty, this is the final
15    /// response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for
16    /// more information.
17    pub cursor: Option<String>,
18}