dtz_core/models/
static_content_http.rs

1/*
2 * DTZ Core Api
3 *
4 * a generated client for the DTZ Core API
5 *
6 * Contact: jens@apimeister.com
7 * Generated by: https://openapi-generator.tech
8 */
9
10#[allow(unused_imports)]
11use crate::models;
12#[allow(unused_imports)]
13use serde::{Deserialize, Serialize};
14
15use serde_with::serde_as;
16
17#[serde_as]
18#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
19pub struct StaticContentHttp {
20    #[serde(rename = "header", skip_serializing_if = "Option::is_none")]
21    pub header: Option<Vec<models::StaticContentHttpHeaderInner>>,
22    /// base64 encoded content
23    #[serde_as(as = "serde_with::base64::Base64")]
24    #[serde(rename = "content")]
25    pub content: Vec<u8>,
26}
27
28impl StaticContentHttp {
29    pub fn new(content: Vec<u8>) -> StaticContentHttp {
30        StaticContentHttp {
31            header: None,
32            content,
33        }
34    }
35}
36