Skip to main content

clientapi_pve/models/
nodes_status_status_response_data_boot_info.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/// NodesStatusStatusResponseDataBootInfo : Meta-information about the boot mode.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NodesStatusStatusResponseDataBootInfo {
17
18    /// Through which firmware the system got booted.
19    #[serde(rename = "mode")]
20    pub mode: models::PveNodesStatusModeEnum,
21
22    /// System is booted in secure mode, only applicable for the \"efi\" mode.
23    #[serde(rename = "secureboot", skip_serializing_if = "Option::is_none")]
24    pub secureboot: Option<models::PveBoolean>,
25
26
27}
28
29impl NodesStatusStatusResponseDataBootInfo {
30    /// Meta-information about the boot mode.
31    pub fn new(mode: models::PveNodesStatusModeEnum) -> NodesStatusStatusResponseDataBootInfo {
32        NodesStatusStatusResponseDataBootInfo {
33            
34            mode,
35            
36            secureboot: None,
37            
38        }
39    }
40}
41
42