serde_path/
lib.rs

1use serde::de::DeserializeOwned;
2use std::sync::Arc;
3
4mod de;
5mod error;
6pub mod util;
7pub use error::*;
8
9pub fn from_path<T: DeserializeOwned>(
10    template: &str,
11    path: &str,
12) -> Result<T, PathDeserializationError> {
13    todo!()
14}
15
16pub fn from_params<T: DeserializeOwned>(
17    params: &[(Arc<str>, util::PercentDecodedStr)],
18) -> Result<T, PathDeserializationError> {
19    T::deserialize(de::PathDeserializer::new(params))
20}