summaryrefslogtreecommitdiff
path: root/src/types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.rs')
-rw-r--r--src/types.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/types.rs b/src/types.rs
index 5afbad2..257f857 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -10,7 +10,7 @@ use crate::traits::IsStation;
#[serde(rename_all = "camelCase")]
pub struct Station {
name: String,
- ds100: String,
+ pub ds100: String,
uic: u64,
latitude: f64,
longitude: f64,
@@ -81,10 +81,10 @@ impl IsStation for Stop {
#[serde(rename_all = "camelCase")]
pub struct Train {
#[serde(rename = "type")]
- _type: String,
- line: Option<String>,
- no: String,
- id: String
+ pub _type: String,
+ pub line: Option<String>,
+ pub no: String,
+ pub id: String
}
impl std::fmt::Display for Train {
@@ -98,11 +98,11 @@ impl std::fmt::Display for Train {
pub struct Status {
deprecated: bool,
pub checked_in: bool,
- from_station: Station,
+ pub from_station: Station,
#[serde(deserialize_with = "parse_optional_station")]
pub to_station: Option<Station>,
intermediate_stops: Vec<Stop>,
- train: Option<Train>,
+ pub train: Option<Train>,
action_time: u64
}