comboios 0.1.0

Unofficial Rust client for Comboios de Portugal (CP) APIs to search stations, get timetables, and retrieve train information
Documentation
1
2
3
4
5
6
7
8
// Custom error type to handle different error scenarios
#[derive(Debug, thiserror::Error)]
pub enum CoreError {
    #[error("error calling cp client")]
    ClientError(#[from] reqwest::Error),
    #[error("error parsing response from client")]
    ParseError,
}