square_api_client/models/
create_card_response.rs

1//! Response struct for the Create Card API
2
3use serde::Deserialize;
4
5use super::errors::Error;
6use super::Card;
7
8/// This is a model struct for CreateCardResponse type.
9#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
10pub struct CreateCardResponse {
11    /// Any errors that occurred during the request.
12    pub errors: Option<Vec<Error>>,
13    /// Represents the payment details of a card to be used for payments. These details are
14    /// determined by the payment token generated by Web Payments SDK.
15    pub card: Card,
16}