paladin-content 0.5.1

Content processing adapters and use-case services for the Paladin framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// use std::fs::File;
// use std::io::{self, BufReader};
// use serde_yaml::from_reader;

// pub struct FileSourceRepository;

// impl FileSourceRepository {
//     pub fn load_sources(filename: &str) -> io::Result<Settings> {
//         let file = File::open(filename)?;
//         let reader = BufReader::new(file);
//         let config: Settings = from_reader(reader).map_err(|e| io::Error::new(io::ErrorKind::Other, e.to_string()))?;
//         Ok(config)
//     }
// }