1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
use serde::{Serialize, Deserialize}; /// A representation of time as a Date object, a localized string, and a time /// zone. #[derive(Clone, Debug, Serialize, Deserialize)] pub struct Time { /// A string representing the time's value. The time is displayed in the /// time zone of the transit stop. text: String, /// The time zone in which this stop lies. The value is the name of the time /// zone as defined in the [IANA Time Zone /// Database](http://www.iana.org/time-zones), e.g. "America/New_York". time_zone: String, /// The time of this departure or arrival. value: u32, } // struct