authentik-client 2026.2.2-rc1

Making authentication simple.
Documentation
/*
 * authentik
 *
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-rc1
 * Contact: hello@goauthentik.io
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Disk {
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "mountpoint")]
    pub mountpoint: String,
    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
    pub label: Option<String>,
    #[serde(rename = "capacity_total_bytes", skip_serializing_if = "Option::is_none")]
    pub capacity_total_bytes: Option<i64>,
    #[serde(rename = "capacity_used_bytes", skip_serializing_if = "Option::is_none")]
    pub capacity_used_bytes: Option<i64>,
    #[serde(rename = "encryption_enabled", skip_serializing_if = "Option::is_none")]
    pub encryption_enabled: Option<bool>,
}

impl Disk {
    pub fn new(name: String, mountpoint: String) -> Disk {
        Disk {
            name,
            mountpoint,
            label: None,
            capacity_total_bytes: None,
            capacity_used_bytes: None,
            encryption_enabled: None,
        }
    }
}