mirror of
https://github.com/tribufu/sdk-rust
synced 2026-02-04 17:33:07 +00:00
46 lines
1.8 KiB
Rust
46 lines
1.8 KiB
Rust
/*
|
|
* Tribufu API
|
|
*
|
|
* REST API to access Tribufu services.
|
|
*
|
|
* The version of the OpenAPI document: 1.1.0
|
|
* Contact: contact@tribufu.com
|
|
* Generated by: https://openapi-generator.tech
|
|
*/
|
|
|
|
use crate::models;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
|
pub struct AuthorizeRequest {
|
|
#[serde(rename = "response_type", skip_serializing_if = "Option::is_none")]
|
|
pub response_type: Option<models::ResponseType>,
|
|
#[serde(rename = "client_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
|
pub client_id: Option<Option<String>>,
|
|
#[serde(rename = "code_challenge", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
|
pub code_challenge: Option<Option<String>>,
|
|
#[serde(rename = "code_challenge_method", skip_serializing_if = "Option::is_none")]
|
|
pub code_challenge_method: Option<models::CodeChallengeMethod>,
|
|
#[serde(rename = "redirect_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
|
pub redirect_uri: Option<Option<String>>,
|
|
#[serde(rename = "scope", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
|
pub scope: Option<Option<String>>,
|
|
#[serde(rename = "state", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
|
|
pub state: Option<Option<String>>,
|
|
}
|
|
|
|
impl AuthorizeRequest {
|
|
pub fn new() -> AuthorizeRequest {
|
|
AuthorizeRequest {
|
|
response_type: None,
|
|
client_id: None,
|
|
code_challenge: None,
|
|
code_challenge_method: None,
|
|
redirect_uri: None,
|
|
scope: None,
|
|
state: None,
|
|
}
|
|
}
|
|
}
|
|
|