csdif-core 0.1.3

Core library for modeling, validating, and transforming CSDIF data
Documentation
1
2
3
4
5
6
7
8
9
10
11
// SPDX-License-Identifier: MIT
// Copyright (c) 2025 Egon Kastelijn
// file: src/context.rs

use crate::error::ContextError;
use crate::model::StationProfile;

/// Provides context for mapping, such as station metadata.
pub trait ContextProvider {
    fn get_station_profile(&self, id: &str) -> Result<StationProfile, ContextError>;
}