pub struct DeparturesQuery {
pub stop: String,
pub time: Option<Timestamp>,
pub count: u32,
pub arrivals: bool,
pub modes: Vec<String>,
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<Timestamp>None: now.
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<String>Only these modes, like SUBURBAN. Empty: all.
page_cursor: Option<String>The later cursor of an earlier result. It replaces time.
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 DeparturesQuerywhere
RawVecInner: Send,
impl Sync for DeparturesQuerywhere
RawVecInner: Sync,
impl Unpin for DeparturesQuery
impl UnsafeUnpin for DeparturesQuerywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for DeparturesQuerywhere
RawVecInner: UnwindSafe,
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.