pub struct CatalogConfig {
pub id: String,
pub provider: Option<String>,
pub title: Option<String>,
pub url: Option<String>,
pub description: Option<String>,
pub settings: Option<CatalogSettings>,
pub collection_aliases: Option<HashMap<String, String>>,
pub asset_aliases: Option<HashMap<String, HashMap<String, String>>>,
}Expand description
A data structure for a STAC catalog from the YAML file.
Fields§
§id: String§provider: Option<String>§title: Option<String>§url: Option<String>§description: Option<String>§settings: Option<CatalogSettings>§collection_aliases: Option<HashMap<String, String>>Maps canonical collection IDs to this catalog’s local collection IDs.
E.g. sentinel-2-l2a: S2MSI2A on a CDSE-style catalog.
asset_aliases: Option<HashMap<String, HashMap<String, String>>>Per-collection asset rename rules, keyed by canonical collection ID.
Inner map: canonical asset key -> this catalog’s local asset key.
E.g. { "sentinel-2-l2a": { "blue": "B02", "green": "B03" } }.
Trait Implementations§
Source§impl Debug for CatalogConfig
impl Debug for CatalogConfig
Source§impl<'de> Deserialize<'de> for CatalogConfig
impl<'de> Deserialize<'de> for CatalogConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl TryFrom<CatalogConfig> for Catalog
impl TryFrom<CatalogConfig> for Catalog
Source§type Error = SuperSTACError
type Error = SuperSTACError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for CatalogConfig
impl RefUnwindSafe for CatalogConfig
impl Send for CatalogConfig
impl Sync for CatalogConfig
impl Unpin for CatalogConfig
impl UnsafeUnpin for CatalogConfig
impl UnwindSafe for CatalogConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more