Skip to main content

csdif_core/
forward_mapper.rs

1// SPDX-License-Identifier: MIT
2// file: csdif_core/src/mapper.rs
3
4use sensorml::model::document::SensorMLDocument;
5// use crate::error::ContextError;
6use crate::error::MappingError;
7use crate::context::ContextProvider;
8
9pub trait InitiativeForwardMapper {
10    fn map_to_sensorml(
11        &self,
12        input: &serde_json::Value,
13        context: &dyn ContextProvider,
14    ) -> Result<SensorMLDocument, MappingError>;
15}
16