Skip to main content

openapi_azure_storage_blob/models/
block_list.rs

1/*
2 * Azure Storage Blob service
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 2026-02-06
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// BlockList : Contains the committed and uncommitted blocks in a block blob.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BlockList {
17    /// The list of committed blocks.
18    #[serde(rename = "CommittedBlocks", skip_serializing_if = "Option::is_none")]
19    pub committed_blocks: Option<Vec<models::Block>>,
20    /// The list of uncommitted blocks.
21    #[serde(rename = "UncommittedBlocks", skip_serializing_if = "Option::is_none")]
22    pub uncommitted_blocks: Option<Vec<models::Block>>,
23}
24
25impl BlockList {
26    /// Contains the committed and uncommitted blocks in a block blob.
27    pub fn new() -> BlockList {
28        BlockList {
29            committed_blocks: None,
30            uncommitted_blocks: None,
31        }
32    }
33}