dtz_core/models/
static_content_http.rs1#[allow(unused)]
12use crate::models;
13
14
15
16
17#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
18pub struct StaticContentHttp {
19 #[serde(rename = "header", skip_serializing_if = "Option::is_none")]
20 pub header: Option<Vec<models::StaticContentHttpHeaderInner>>,
21 #[serde(rename = "content")]
23 pub content: String,
24}
25
26impl StaticContentHttp {
27 pub fn new(content: String) -> StaticContentHttp {
28 StaticContentHttp {
29 header: None,
30 content,
31 }
32 }
33}
34
35