Skip to main content

clientapi_pve/models/
access_openid_login_request.rs

1/*
2 * Proxmox Virtual Environment API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-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 AccessOpenidLoginRequest {
16
17    /// OpenId authorization code.
18    #[serde(rename = "code")]
19    pub code: String,
20
21    /// Redirection Url. The client should set this to the used server url (location.origin).
22    #[serde(rename = "redirect-url")]
23    pub redirect_url: String,
24
25    /// OpenId state.
26    #[serde(rename = "state")]
27    pub state: String,
28
29
30}
31
32impl AccessOpenidLoginRequest {
33    pub fn new(code: String, redirect_url: String, state: String) -> AccessOpenidLoginRequest {
34        AccessOpenidLoginRequest {
35            
36            code,
37            
38            redirect_url,
39            
40            state,
41            
42        }
43    }
44}
45
46