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

/// ListContainersSegmentResponse : The list container segment response
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListContainersSegmentResponse {
    /// The service endpoint.
    #[serde(rename = "ServiceEndpoint")]
    pub service_endpoint: String,
    /// The prefix of the containers.
    #[serde(rename = "Prefix", skip_serializing_if = "Option::is_none")]
    pub prefix: Option<String>,
    /// The marker of the containers.
    #[serde(rename = "Marker", skip_serializing_if = "Option::is_none")]
    pub marker: Option<String>,
    /// The max results of the containers.
    #[serde(rename = "MaxResults", skip_serializing_if = "Option::is_none")]
    pub max_results: Option<i32>,
    /// The container segment.
    #[serde(rename = "Containers")]
    pub containers: Vec<models::ContainerItem>,
    /// The next marker of the containers.
    #[serde(rename = "NextMarker", skip_serializing_if = "Option::is_none")]
    pub next_marker: Option<String>,
}

impl ListContainersSegmentResponse {
    /// The list container segment response
    pub fn new(
        service_endpoint: String,
        containers: Vec<models::ContainerItem>,
    ) -> ListContainersSegmentResponse {
        ListContainersSegmentResponse {
            service_endpoint,
            prefix: None,
            marker: None,
            max_results: None,
            containers,
            next_marker: None,
        }
    }
}