/*
 * Hetzner Cloud API
 *
 * Copied from the official API documentation for the Public Hetzner Cloud.
 *
 * The version of the OpenAPI document: 4b3f595
 *
 * Generated by: https://openapi-generator.tech
 */

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

/// SnapshotStats : Statistics of the Storage Box Snapshot.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SnapshotStats {
    /// Current storage requirements of the Snapshot in bytes.
    #[serde(rename = "size")]
    pub size: i64,
    /// Size of the compressed file system contained in the Snapshot in bytes.
    #[serde(rename = "size_filesystem")]
    pub size_filesystem: i64,
}

impl SnapshotStats {
    /// Statistics of the Storage Box Snapshot.
    pub fn new(size: i64, size_filesystem: i64) -> SnapshotStats {
        SnapshotStats {
            size,
            size_filesystem,
        }
    }
}
