gitea_rs/models/
create_o_auth2_application_options.rs

1/*
2 * Gitea API.
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.19.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// CreateOAuth2ApplicationOptions : CreateOAuth2ApplicationOptions holds options to create an oauth2 application
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct CreateOAuth2ApplicationOptions {
17    #[serde(rename = "confidential_client", skip_serializing_if = "Option::is_none")]
18    pub confidential_client: Option<bool>,
19    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
20    pub name: Option<String>,
21    #[serde(rename = "redirect_uris", skip_serializing_if = "Option::is_none")]
22    pub redirect_uris: Option<Vec<String>>,
23}
24
25impl CreateOAuth2ApplicationOptions {
26    /// CreateOAuth2ApplicationOptions holds options to create an oauth2 application
27    pub fn new() -> CreateOAuth2ApplicationOptions {
28        CreateOAuth2ApplicationOptions {
29            confidential_client: None,
30            name: None,
31            redirect_uris: None,
32        }
33    }
34}
35
36