squareup 2.13.0

Rust SDK for the Square Developer API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Response struct for the List Payment Links API

use serde::Deserialize;

use super::{PaymentLink, errors::Error};

/// This is a model struct for ListPaymentLinkResponse type
#[derive(Clone, Debug, Deserialize, Eq, PartialEq)]
pub struct ListPaymentLinkResponse {
    /// Information about errors encountered during the request.
    pub errors: Option<Vec<Error>>,
    /// The list of payment links.
    pub payment_links: Option<Vec<PaymentLink>>,
    /// When a response is truncated, it includes a cursor that you can use in a subsequent request
    /// to retrieve the next set of gift cards. If a cursor is not present, this is the final
    /// response. For more information, see Pagination.
    pub cursor: Option<String>,
}