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
/*
* 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};
/// StaticWebsite : The properties that enable an account to host a static website
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct StaticWebsite {
/// Indicates whether this account is hosting a static website
#[serde(rename = "Enabled")]
pub enabled: bool,
/// The index document.
#[serde(rename = "IndexDocument", skip_serializing_if = "Option::is_none")]
pub index_document: Option<String>,
/// The error document.
#[serde(
rename = "ErrorDocument404Path",
skip_serializing_if = "Option::is_none"
)]
pub error_document404_path: Option<String>,
/// Absolute path of the default index page
#[serde(
rename = "DefaultIndexDocumentPath",
skip_serializing_if = "Option::is_none"
)]
pub default_index_document_path: Option<String>,
}
impl StaticWebsite {
/// The properties that enable an account to host a static website
pub fn new(enabled: bool) -> StaticWebsite {
StaticWebsite {
enabled,
index_document: None,
error_document404_path: None,
default_index_document_path: None,
}
}
}