Skip to main content

clientapi_pve/models/
nodes_storage_identity_response_data.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 NodesStorageIdentityResponseData {
16
17    /// Unique identifier for this storage instance. The exact format and semantics depend on the storage plugin type.
18    #[serde(rename = "id")]
19    pub id: String,
20
21    /// The type of the storage.
22    #[serde(rename = "type")]
23    pub r#type: models::PveNodesStorageTypeEnum,
24
25
26}
27
28impl NodesStorageIdentityResponseData {
29    pub fn new(id: String, r#type: models::PveNodesStorageTypeEnum) -> NodesStorageIdentityResponseData {
30        NodesStorageIdentityResponseData {
31            
32            id,
33            
34            r#type,
35            
36        }
37    }
38}
39
40