clientapi-pbs 2026.5.24

Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
Documentation
/*
 * Proxmox Backup Server API
 *
 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
 *
 * The version of the OpenAPI document: 9.x
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TapeChangerGetStatusResponseDataInner {

    /// The ID of the slot or drive
    #[serde(rename = "entry-id")]
    pub entry_id: i64,

    /// Mtx Entry Kind
    #[serde(rename = "entry-kind")]
    pub entry_kind: models::PbsTapeChangerEntryKindEnum,

    /// Media Label/Barcode.
    #[serde(rename = "label-text", skip_serializing_if = "Option::is_none")]
    pub label_text: Option<String>,

    /// The slot the drive was loaded from
    #[serde(rename = "loaded-slot", skip_serializing_if = "Option::is_none")]
    pub loaded_slot: Option<i64>,

    /// The current state of the drive
    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,


}

impl TapeChangerGetStatusResponseDataInner {
    pub fn new(entry_id: i64, entry_kind: models::PbsTapeChangerEntryKindEnum) -> TapeChangerGetStatusResponseDataInner {
        TapeChangerGetStatusResponseDataInner {
            
            entry_id,
            
            entry_kind,
            
            label_text: None,
            
            loaded_slot: None,
            
            state: None,
            
        }
    }
}