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

/// UserDelegationKey : A user delegation key.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UserDelegationKey {
    /// Universally Unique Identifier
    #[serde(rename = "SignedOid")]
    pub signed_oid: uuid::Uuid,
    /// Universally Unique Identifier
    #[serde(rename = "SignedTid")]
    pub signed_tid: uuid::Uuid,
    /// The date-time the key is active.
    #[serde(rename = "SignedStart")]
    pub signed_start: String,
    /// The date-time the key expires.
    #[serde(rename = "SignedExpiry")]
    pub signed_expiry: String,
    /// Abbreviation of the Azure Storage service that accepts the key.
    #[serde(rename = "SignedService")]
    pub signed_service: String,
    /// The service version that created the key.
    #[serde(rename = "SignedVersion")]
    pub signed_version: String,
    #[serde(rename = "Value")]
    pub value: String,
}

impl UserDelegationKey {
    /// A user delegation key.
    pub fn new(
        signed_oid: uuid::Uuid,
        signed_tid: uuid::Uuid,
        signed_start: String,
        signed_expiry: String,
        signed_service: String,
        signed_version: String,
        value: String,
    ) -> UserDelegationKey {
        UserDelegationKey {
            signed_oid,
            signed_tid,
            signed_start,
            signed_expiry,
            signed_service,
            signed_version,
            value,
        }
    }
}