clientapi_pbs/models/config_access_get_webauthn_response_data.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 ConfigAccessGetWebauthnResponseData {
16
17 /// If an `origin` is specified, this specifies whether subdomains should be considered valid as well. May be changed at any time. Defaults to `true`.
18 #[serde(rename = "allow-subdomains", skip_serializing_if = "Option::is_none")]
19 pub allow_subdomains: Option<bool>,
20
21 /// Relying party ID. Must be the domain name without protocol, port or location. Changing this *will* break existing credentials.
22 #[serde(rename = "id")]
23 pub id: String,
24
25 /// Site origin. Must be a `https://` URL (or `http://localhost`). Should contain the address users type in their browsers to access the web interface. Changing this *may* break existing credentials.
26 #[serde(rename = "origin", skip_serializing_if = "Option::is_none")]
27 pub origin: Option<String>,
28
29 /// Relying party name. Any text identifier. Changing this *may* break existing credentials.
30 #[serde(rename = "rp")]
31 pub rp: String,
32
33
34}
35
36impl ConfigAccessGetWebauthnResponseData {
37 pub fn new(id: String, rp: String) -> ConfigAccessGetWebauthnResponseData {
38 ConfigAccessGetWebauthnResponseData {
39
40 allow_subdomains: None,
41
42 id,
43
44 origin: None,
45
46 rp,
47
48 }
49 }
50}
51
52