sdf-parser-df 0.14.0

Core parser for the sdf YAML
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub mod config;

pub use parser::*;

pub mod parser {

    use crate::config;

    pub fn parse(data_pipeline: &str) -> anyhow::Result<config::DataflowDefinitionConfig> {
        let yd = serde_yaml::Deserializer::from_str(data_pipeline);
        let config = serde_path_to_error::deserialize(yd)?;

        Ok(config)
    }
}