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
//! Response struct for the Authorize OAuth API

use serde::Deserialize;

/// This is a model struct for AuthorizeOAuthResponse type.
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
pub struct AuthorizeOAuthResponse {
    /// A valid authorization code. Authorization codes are exchanged for OAuth access tokens
    /// with the ObtainToken endpoint.
    /// Max Length 191
    pub code: Option<String>,
    /// The same value specified in the request.
    /// Min Length 1, Max Length 2048
    pub state: Option<String>,
}