Skip to main content

clientapi_pbs/models/
tape_changer_create_transfer_request.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 TapeChangerCreateTransferRequest {
16
17    /// Source slot number
18    #[serde(rename = "from")]
19    pub from: i64,
20
21    /// Destination slot number
22    #[serde(rename = "to")]
23    pub to: i64,
24
25
26}
27
28impl TapeChangerCreateTransferRequest {
29    pub fn new(from: i64, to: i64) -> TapeChangerCreateTransferRequest {
30        TapeChangerCreateTransferRequest {
31            
32            from,
33            
34            to,
35            
36        }
37    }
38}
39
40