pub struct TransitStop {
pub type_: TransitStopType,
pub name: String,
pub arrival_date_time: NaiveDateTime,
pub departure_date_time: NaiveDateTime,
pub is_parent_stop: bool,
pub assumed_schedule: bool,
pub lat: f64,
pub lon: f64,
}
Expand description
Transit stop information
Fields§
§type_: TransitStopType
The type of transit stop
name: String
Name of the stop or station
Example: “14 St - Union Sq”
arrival_date_time: NaiveDateTime
Arrival date and time
departure_date_time: NaiveDateTime
Departure date and time
is_parent_stop: bool
true
if this stop is a marked as a parent stop.
assumed_schedule: bool
true
if the times are based on an assumed schedule because the actual schedule is not
known.
lat: f64
Latitude of the transit stop in degrees.
lon: f64
Longitude of the transit stop in degrees.
Trait Implementations§
Source§impl Clone for TransitStop
impl Clone for TransitStop
Source§fn clone(&self) -> TransitStop
fn clone(&self) -> TransitStop
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TransitStop
impl Debug for TransitStop
Source§impl<'de> Deserialize<'de> for TransitStop
impl<'de> Deserialize<'de> for TransitStop
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TransitStop
impl RefUnwindSafe for TransitStop
impl Send for TransitStop
impl Sync for TransitStop
impl Unpin for TransitStop
impl UnwindSafe for TransitStop
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more