use std::collections::BTreeMap;
use serde::{Deserialize, Serialize};
use super::{CacheTtl, JsonObject};
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CacheControl {
#[serde(rename = "type")]
pub type_: CacheControlType,
#[serde(skip_serializing_if = "Option::is_none")]
pub ttl: Option<CacheTtl>,
#[serde(default, flatten, skip_serializing_if = "BTreeMap::is_empty")]
pub extra: JsonObject,
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub enum CacheControlType {
#[serde(rename = "ephemeral")]
Ephemeral,
}