Skip to main content

clientapi_pbs/models/
nodes_status_get_status_response_data_boot_info.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/// NodesStatusGetStatusResponseDataBootInfo : Holds the Bootmodes
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NodesStatusGetStatusResponseDataBootInfo {
17
18    /// The possible BootModes
19    #[serde(rename = "mode")]
20    pub mode: models::PbsNodesStatusModeEnum,
21
22    /// SecureBoot status
23    #[serde(rename = "secureboot")]
24    pub secureboot: bool,
25
26
27}
28
29impl NodesStatusGetStatusResponseDataBootInfo {
30    /// Holds the Bootmodes
31    pub fn new(mode: models::PbsNodesStatusModeEnum, secureboot: bool) -> NodesStatusGetStatusResponseDataBootInfo {
32        NodesStatusGetStatusResponseDataBootInfo {
33            
34            mode,
35            
36            secureboot,
37            
38        }
39    }
40}
41
42