amtrak-api 0.2.0

Amtrak Async Rust API Client
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("Unable to send the request: {0}")]
    RequestFailed(#[from] reqwest::Error),

    #[error("Unable to deserialize the received value: {0}")]
    DeserializeFailed(#[from] serde_json::error::Error),

    #[error("API returned an error response: {0}")]
    ApiErrorResponse(String),
}