Skip to main content

clientapi_pbs/models/
access_openid_create_login_request.rs

1/*
2 * Proxmox Backup Server API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
5 *
6 * The version of the OpenAPI document: 9.x
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AccessOpenidCreateLoginRequest {
16
17    /// OpenId authorization code.
18    #[serde(rename = "code")]
19    pub code: String,
20
21    /// Whether the HttpOnly authentication flow should be used.
22    #[serde(rename = "http-only", skip_serializing_if = "Option::is_none")]
23    pub http_only: Option<bool>,
24
25    /// Redirection Url. The client should set this to used server url.
26    #[serde(rename = "redirect-url")]
27    pub redirect_url: String,
28
29    /// OpenId state.
30    #[serde(rename = "state")]
31    pub state: String,
32
33
34}
35
36impl AccessOpenidCreateLoginRequest {
37    pub fn new(code: String, redirect_url: String, state: String) -> AccessOpenidCreateLoginRequest {
38        AccessOpenidCreateLoginRequest {
39            
40            code,
41            
42            http_only: None,
43            
44            redirect_url,
45            
46            state,
47            
48        }
49    }
50}
51
52