pub struct TripQuery {
pub from: String,
pub to: String,
pub time: Option<QueryTime>,
pub arrive_by: bool,
pub count: u32,
pub modes: Vec<Mode>,
pub max_transfers: Option<u32>,
pub page_cursor: Option<String>,
pub realtime_routing: bool,
}Expand description
A search for connections.
Fields§
§from: StringA stop ID, a name that names one stop, or LAT,LON.
to: String§time: Option<QueryTime>None: now. A local time is the time at from, or at to with
arrive_by.
arrive_by: boolWhether time is the latest arrival rather than the earliest
departure.
count: u32How many connections to ask for, at most MAX_CONNECTIONS. The
result has all the API returns, which can be more: the page cursors
continue after the whole page, so nothing is dropped.
modes: Vec<Mode>Only these transit modes. Empty: all.
max_transfers: Option<u32>§page_cursor: Option<String>§realtime_routing: boolRoute on the realtime timetable: cancelled trips and missed transfers drop out instead of showing with their status.
Trait Implementations§
impl Eq for TripQuery
impl StructuralPartialEq for TripQuery
Auto Trait Implementations§
impl Forget for TripQuery
impl Freeze for TripQuery
impl Move for TripQuery
impl RefUnwindSafe for TripQuery
impl Send for TripQuery
impl Sync for TripQuery
impl Unpin for TripQuery
impl UnsafeUnpin for TripQuery
impl UnwindSafe for TripQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.