parkright 1.6.0

Wrapper around Parkright Settlement API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("http: {0}")]
    Http(String),

    #[error("deserializing reply: {err}")]
    Deserializing { err: serde_json::Error },

    #[error("non OK reply: {status:03}")]
    NonOkReply { status: u16 },
}

impl From<reqwest::Error> for Error {
    fn from(e: reqwest::Error) -> Self {
        Self::Http(e.to_string())
    }
}