pub struct Alight {
pub stop_place_ref: Box<StopPlaceRef>,
pub stop_place_name: String,
pub planned_stop_point_name: Option<Option<String>>,
pub estimated_stop_point_name: Option<Option<String>>,
pub service_arrival: Box<ServiceTime>,
pub status: Option<Box<StopCallStatus>>,
}Expand description
Alight : Describes the situation at a stop or station at which the passenger alights from a Leg of a trip including time-related information. Provided by OJP.
Fields§
§stop_place_ref: Box<StopPlaceRef>§stop_place_name: String§planned_stop_point_name: Option<Option<String>>Name of the bay/quay/terminal where to board/alight from the vehicle. According to planned timetable.
estimated_stop_point_name: Option<Option<String>>Name of the bay/quay/terminal where to board the vehicle. As to the latest realtime status.
service_arrival: Box<ServiceTime>§status: Option<Box<StopCallStatus>>Implementations§
Source§impl Alight
impl Alight
Sourcepub fn new(
stop_place_ref: StopPlaceRef,
stop_place_name: String,
service_arrival: ServiceTime,
) -> Alight
pub fn new( stop_place_ref: StopPlaceRef, stop_place_name: String, service_arrival: ServiceTime, ) -> Alight
Describes the situation at a stop or station at which the passenger alights from a Leg of a trip including time-related information. Provided by OJP.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Alight
impl<'de> Deserialize<'de> for Alight
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
impl StructuralPartialEq for Alight
Auto Trait Implementations§
impl Freeze for Alight
impl RefUnwindSafe for Alight
impl Send for Alight
impl Sync for Alight
impl Unpin for Alight
impl UnwindSafe for Alight
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