squareup/models/
authorize_oauth_response.rs

1//! Response struct for the Authorize OAuth API
2
3use serde::Deserialize;
4
5/// This is a model struct for AuthorizeOAuthResponse type.
6#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
7pub struct AuthorizeOAuthResponse {
8    /// A valid authorization code. Authorization codes are exchanged for OAuth access tokens
9    /// with the ObtainToken endpoint.
10    /// Max Length 191
11    pub code: Option<String>,
12    /// The same value specified in the request.
13    /// Min Length 1, Max Length 2048
14    pub state: Option<String>,
15}