dtz_core/models/
static_content_http.rs

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