pub struct DeparturesQuery {
pub stop: String,
pub time: Option<QueryTime>,
pub count: u32,
pub arrivals: bool,
pub modes: Vec<Mode>,
pub page_cursor: Option<String>,
}Expand description
A search for departures or arrivals.
Fields§
§stop: StringA stop ID, or a name that names one stop.
time: Option<QueryTime>None: now. A local time is the time at the stop.
count: u32How many to ask for, at most MAX_DEPARTURES. The API can return
more, and the result has them all.
arrivals: bool§modes: Vec<Mode>Only these modes. Empty: all.
page_cursor: Option<String>Trait Implementations§
Source§impl Clone for DeparturesQuery
impl Clone for DeparturesQuery
Source§impl Debug for DeparturesQuery
impl Debug for DeparturesQuery
Source§impl Default for DeparturesQuery
impl Default for DeparturesQuery
impl Eq for DeparturesQuery
Source§impl PartialEq for DeparturesQuery
impl PartialEq for DeparturesQuery
impl StructuralPartialEq for DeparturesQuery
Auto Trait Implementations§
impl Forget for DeparturesQuery
impl Freeze for DeparturesQuery
impl Move for DeparturesQuery
impl RefUnwindSafe for DeparturesQuery
impl Send for DeparturesQuery
impl Sync for DeparturesQuery
impl Unpin for DeparturesQuery
impl UnsafeUnpin for DeparturesQuery
impl UnwindSafe for DeparturesQuery
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.