1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! Catalog for managing tile source metadata and discovery.
//!
//! Provides a type-safe catalog system for storing and retrieving tile source
//! information, including content types, encoding, and attribution data.
use HashMap;
use ;
use serde_with;
/// A catalog mapping source IDs to their metadata entries.
///
/// Used to store and discover available tile sources with their associated
/// metadata like content types, names, and attribution information.
///
/// # Examples
///
/// ```rust
/// use martin_core::tiles::catalog::{TileCatalog, CatalogSourceEntry};
///
/// let mut catalog = TileCatalog::new();
/// let entry = CatalogSourceEntry {
/// content_type: "application/x-protobuf".to_string(),
/// content_encoding: Some("gzip".to_string()),
/// name: Some("My Tiles".to_string()),
/// ..Default::default()
/// };
/// catalog.insert("my_source".to_string(), entry);
/// ```
pub type TileCatalog = ;
/// Metadata for a tile source in the catalog.
///
/// Contains information needed to properly serve tiles from a source,
/// including HTTP headers and human-readable metadata.