pub struct JourneyRequest { /* private fields */ }Expand description
Input object for crate::ItaloApi::find_journeys
Implementations§
Source§impl JourneyRequest
impl JourneyRequest
Sourcepub fn set_adult_number(&mut self, val: u8) -> &mut Self
pub fn set_adult_number(&mut self, val: u8) -> &mut Self
Set the number of adults
Sourcepub fn set_child_number(&mut self, val: u8) -> &mut Self
pub fn set_child_number(&mut self, val: u8) -> &mut Self
Set the number of children
Sourcepub fn set_infant_number(&mut self, val: u8) -> &mut Self
pub fn set_infant_number(&mut self, val: u8) -> &mut Self
Set the number of infants
Sourcepub fn set_senior_number(&mut self, val: u8) -> &mut Self
pub fn set_senior_number(&mut self, val: u8) -> &mut Self
Set the number of seniors
Sourcepub fn set_override_interval_time_restriction(&mut self, val: bool) -> &mut Self
pub fn set_override_interval_time_restriction(&mut self, val: bool) -> &mut Self
Ignore interval dateTime values
Sourcepub fn set_currency_code(&mut self, val: String) -> &mut Self
pub fn set_currency_code(&mut self, val: String) -> &mut Self
Currency for the amount. Default is EUR.
Source§impl JourneyRequest
impl JourneyRequest
Sourcepub fn set_departure_station(&mut self, val: Station) -> &mut Self
pub fn set_departure_station(&mut self, val: Station) -> &mut Self
Set the departure station for the journey search
Sourcepub fn set_arrival_station(&mut self, val: Station) -> &mut Self
pub fn set_arrival_station(&mut self, val: Station) -> &mut Self
Set the arrival station for the journey search
Sourcepub fn set_interval_start_date_time(&mut self, val: DateTime<Utc>) -> &mut Self
pub fn set_interval_start_date_time(&mut self, val: DateTime<Utc>) -> &mut Self
Set the DateTime from which to start the search for journeys
Sourcepub fn set_interval_end_date_time(&mut self, val: DateTime<Utc>) -> &mut Self
pub fn set_interval_end_date_time(&mut self, val: DateTime<Utc>) -> &mut Self
Set the DateTime limit for the search for journeys
Trait Implementations§
Source§impl Debug for JourneyRequest
impl Debug for JourneyRequest
Source§impl Default for JourneyRequest
impl Default for JourneyRequest
Auto Trait Implementations§
impl Freeze for JourneyRequest
impl RefUnwindSafe for JourneyRequest
impl Send for JourneyRequest
impl Sync for JourneyRequest
impl Unpin for JourneyRequest
impl UnwindSafe for JourneyRequest
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