1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* 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,
}
}
}