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};

/// ListBlobsHierarchySegmentResponse : An enumeration of blobs
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListBlobsHierarchySegmentResponse {
    /// The service endpoint.
    #[serde(rename = "ServiceEndpoint")]
    pub service_endpoint: String,
    /// The container name.
    #[serde(rename = "ContainerName")]
    pub container_name: String,
    /// The delimiter of the blobs.
    #[serde(rename = "Delimiter", skip_serializing_if = "Option::is_none")]
    pub delimiter: Option<String>,
    /// The prefix of the blobs.
    #[serde(rename = "Prefix", skip_serializing_if = "Option::is_none")]
    pub prefix: Option<String>,
    /// The marker of the blobs.
    #[serde(rename = "Marker", skip_serializing_if = "Option::is_none")]
    pub marker: Option<String>,
    /// The max results of the blobs.
    #[serde(rename = "MaxResults", skip_serializing_if = "Option::is_none")]
    pub max_results: Option<i32>,
    #[serde(rename = "Blobs")]
    pub blobs: Box<models::BlobHierarchyListSegment>,
    /// The next marker of the blobs.
    #[serde(rename = "NextMarker", skip_serializing_if = "Option::is_none")]
    pub next_marker: Option<String>,
}

impl ListBlobsHierarchySegmentResponse {
    /// An enumeration of blobs
    pub fn new(
        service_endpoint: String,
        container_name: String,
        blobs: models::BlobHierarchyListSegment,
    ) -> ListBlobsHierarchySegmentResponse {
        ListBlobsHierarchySegmentResponse {
            service_endpoint,
            container_name,
            delimiter: None,
            prefix: None,
            marker: None,
            max_results: None,
            blobs: Box::new(blobs),
            next_marker: None,
        }
    }
}