amtrack_rs 0.1.2

A fully open-source Rust-based API and Package for fetching live train and station data from Amtrak.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Clone)]
pub struct GetStationsResponse {
    pub status: String,
    pub data: Vec<Stations>,
}

#[derive(Serialize, Deserialize, Clone)]
pub struct Stations {
    pub name: Option<String>,
    pub code: Option<String>,
}