pub struct TripQuery {
pub from: String,
pub to: String,
pub time: Option<Timestamp>,
pub arrive_by: bool,
pub count: u32,
pub modes: Vec<String>,
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<Timestamp>None: now.
arrive_by: boolWhether time is the latest arrival.
count: u32At most MAX_CONNECTIONS.
modes: Vec<String>Only these modes. Empty: all.
max_transfers: Option<u32>§page_cursor: Option<String>A cursor of an earlier result. It replaces time.
realtime_routing: boolWhether the search takes delays and cancellations into account, not only shows them.
Trait Implementations§
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 TripQuerywhere
RawVecInner: Send,
impl Sync for TripQuerywhere
RawVecInner: Sync,
impl Unpin for TripQuery
impl UnsafeUnpin for TripQuerywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for TripQuerywhere
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