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
/*
* 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};
/// Logging : Azure Analytics Logging settings.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Logging {
/// The version of the logging properties.
#[serde(rename = "Version")]
pub version: String,
/// Whether delete operation is logged.
#[serde(rename = "Delete")]
pub delete: bool,
/// Whether read operation is logged.
#[serde(rename = "Read")]
pub read: bool,
/// Whether write operation is logged.
#[serde(rename = "Write")]
pub write: bool,
#[serde(rename = "RetentionPolicy")]
pub retention_policy: Box<models::RetentionPolicy>,
}
impl Logging {
/// Azure Analytics Logging settings.
pub fn new(
version: String,
delete: bool,
read: bool,
write: bool,
retention_policy: models::RetentionPolicy,
) -> Logging {
Logging {
version,
delete,
read,
write,
retention_policy: Box::new(retention_policy),
}
}
}