use std::collections::BTreeMap;
use chrono::{DateTime, Utc};
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>,
pub last_modified_at: Option<DateTime<Utc>>,
}