use std::collections::BTreeMap;
use jiff::Timestamp;
use serde::{Deserialize, Serialize};
use serde_with;
pub type TileCatalog = BTreeMap<String, CatalogSourceEntry>;
#[serde_with::skip_serializing_none]
#[derive(Debug, Clone, Default, Serialize, Deserialize, PartialEq, Eq)]
#[cfg_attr(feature = "unstable-schemas", derive(schemars::JsonSchema, utoipa::ToSchema))]
#[non_exhaustive]
pub struct CatalogSourceEntry {
pub content_type: String,
pub content_encoding: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub attribution: Option<String>,
pub tile_grid: Option<String>,
pub layer_count: Option<u32>,
#[cfg_attr(feature = "unstable-schemas", schemars(with = "Option<String>", extend("format" = "date-time")))]
pub last_modified_at: Option<Timestamp>,
}