/*
* 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};
/// Block : Represents a single block in a block blob. It describes the block's ID and size.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Block {
#[serde(rename = "Name")]
pub name: String,
/// The block size in bytes.
#[serde(rename = "Size")]
pub size: i64,
}
impl Block {
/// Represents a single block in a block blob. It describes the block's ID and size.
pub fn new(name: String, size: i64) -> Block {
Block { name, size }
}
}