pub struct TripParameters {
pub data_filter: Option<Box<TripDataFilter>>,
pub policy_filter: Option<Box<BaseTripPolicyFilter>>,
pub mobility_filter: Option<Box<TripMobilityFilter>>,
pub number_of_results: Option<Option<i32>>,
pub number_of_results_before: Option<Option<i32>>,
pub number_of_results_after: Option<Option<i32>>,
pub ignore_realtime_data: Option<Option<bool>>,
pub transfer_limit: Option<Option<i32>>,
pub it_modes_to_cover: Option<String>,
}Expand description
TripParameters : Options to control the search behavior and response contents. number of results > either number of results or number of results before and after are used. Provided by OJP.
Fields§
§data_filter: Option<Box<TripDataFilter>>§policy_filter: Option<Box<BaseTripPolicyFilter>>§mobility_filter: Option<Box<TripMobilityFilter>>§number_of_results: Option<Option<i32>>Deprecated in 3.7.0 as it is getting removed in OJP to avoid inconsistency.
number_of_results_before: Option<Option<i32>>§number_of_results_after: Option<Option<i32>>§ignore_realtime_data: Option<Option<bool>>§transfer_limit: Option<Option<i32>>The maximum number of interchanges the user will accept per trip.
it_modes_to_cover: Option<String>Modes which an individual powers themselves (such as walk, cycle). Provided by OJP.
Implementations§
Source§impl TripParameters
impl TripParameters
Sourcepub fn new() -> TripParameters
pub fn new() -> TripParameters
Options to control the search behavior and response contents. number of results > either number of results or number of results before and after are used. Provided by OJP.
Trait Implementations§
Source§impl Clone for TripParameters
impl Clone for TripParameters
Source§fn clone(&self) -> TripParameters
fn clone(&self) -> TripParameters
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 TripParameters
impl Debug for TripParameters
Source§impl Default for TripParameters
impl Default for TripParameters
Source§fn default() -> TripParameters
fn default() -> TripParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TripParameters
impl<'de> Deserialize<'de> for TripParameters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TripParameters
impl PartialEq for TripParameters
Source§impl Serialize for TripParameters
impl Serialize for TripParameters
impl StructuralPartialEq for TripParameters
Auto Trait Implementations§
impl Freeze for TripParameters
impl RefUnwindSafe for TripParameters
impl Send for TripParameters
impl Sync for TripParameters
impl Unpin for TripParameters
impl UnwindSafe for TripParameters
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