web-route 0.2.5

Ergonomic web route construction, joining, and population for Rust web frameworks
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[derive(Debug, Clone, thiserror::Error)]
pub enum WebRouteError {
    /// When generating a populated route, the `value`s input needs to
    /// serialize into key-value pairs.
    #[error("values need to be able to serialize into a `serde_json::Value::Object`")]
    InvalidValue,

    /// When generating a populated route, there was no value to populate the
    /// specified parameter key.
    #[error("no value to populate parameter: {0}")]
    UnpopulatedParam(String),
}