openapi-azure-storage-blob 0.1.1

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Azure Storage Blob service
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 2026-02-06
 *
 * Generated by: https://openapi-generator.tech
 */

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

/// ContainerItem : An Azure Storage container.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ContainerItem {
    /// The name of the container.
    #[serde(rename = "Name")]
    pub name: String,
    /// Whether the container is deleted.
    #[serde(rename = "Deleted", skip_serializing_if = "Option::is_none")]
    pub deleted: Option<bool>,
    /// The version of the container.
    #[serde(rename = "Version", skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
    #[serde(rename = "Properties")]
    pub properties: Box<models::ContainerProperties>,
    /// The metadata of the container.
    #[serde(rename = "Metadata", skip_serializing_if = "Option::is_none")]
    pub metadata: Option<std::collections::HashMap<String, String>>,
}

impl ContainerItem {
    /// An Azure Storage container.
    pub fn new(name: String, properties: models::ContainerProperties) -> ContainerItem {
        ContainerItem {
            name,
            deleted: None,
            version: None,
            properties: Box::new(properties),
            metadata: None,
        }
    }
}