pub struct GetBusArrivalInput {
pub bus_stop_code: u32,
pub service_no: Option<BusServiceNumber>,
}Expand description
Returns real-time Bus Arrival information of Bus Services at a queried Bus Stop, including
- Estimated Arrival Time
- Estimated Current Location
- Estimated Current Load.
Update freq: 20s
Fields§
§bus_stop_code: u32Bus stop reference code.
service_no: Option<BusServiceNumber>Optional bus service number filter.
Implementations§
Source§impl GetBusArrivalInput
impl GetBusArrivalInput
pub fn new(bus_stop_code: u32) -> Self
pub fn service_no(self, service_no: BusServiceNumber) -> Self
Trait Implementations§
Source§impl Clone for GetBusArrivalInput
impl Clone for GetBusArrivalInput
Source§fn clone(&self) -> GetBusArrivalInput
fn clone(&self) -> GetBusArrivalInput
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 GetBusArrivalInput
impl Debug for GetBusArrivalInput
Source§impl PartialEq for GetBusArrivalInput
impl PartialEq for GetBusArrivalInput
impl StructuralPartialEq for GetBusArrivalInput
Auto Trait Implementations§
impl Freeze for GetBusArrivalInput
impl RefUnwindSafe for GetBusArrivalInput
impl Send for GetBusArrivalInput
impl Sync for GetBusArrivalInput
impl Unpin for GetBusArrivalInput
impl UnsafeUnpin for GetBusArrivalInput
impl UnwindSafe for GetBusArrivalInput
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