Struct valhalla_client::TransitStop
source · pub struct TransitStop {
pub type_: TransitStopType,
pub name: String,
pub arrival_date_time: String,
pub departure_date_time: String,
pub is_parent_stop: bool,
pub assumed_schedule: bool,
pub lat: f64,
pub lon: f64,
}
Fields§
§type_: TransitStopType
§name: String
Name of the stop or station. For example “14 St - Union Sq”.
arrival_date_time: String
Arrival date and time using the ISO 8601 format (YYYY-MM-DDThh:mm). For example, “2015-12-29T08:06”.
departure_date_time: String
Departure date and time using the ISO 8601 format (YYYY-MM-DDThh:mm). For example, “2015-12-29T08:06”.
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 copy 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 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