pub struct OfferOverviewRouteRequest {
pub route_specification: Box<RouteSpecification>,
pub passenger_specifications: Vec<AnonymousPassengerSpecification>,
pub start_date_time: String,
pub end_date_time: String,
pub time_frame_segmentation: Option<TimeFrameSegmentation>,
pub travel_class: Option<String>,
pub flexibility: Option<String>,
}Expand description
OfferOverviewRouteRequest : Defines the parameters needed to request an offer overview for a route. Travel class and flexibility are optional parameters to filter the desired offers.
Fields§
§route_specification: Box<RouteSpecification>§passenger_specifications: Vec<AnonymousPassengerSpecification>§start_date_time: String§end_date_time: String§time_frame_segmentation: Option<TimeFrameSegmentation>Defines the segmentation of the time frame for the offer overview. The default is DAY, which means that one price offer overview is given for each day of the requested time frame (provided there aren’t more than one travel classes or flexibilities for one time segment).
travel_class: Option<String>Traditional first and second class.
flexibility: Option<String>Implementations§
Source§impl OfferOverviewRouteRequest
impl OfferOverviewRouteRequest
Sourcepub fn new(
route_specification: RouteSpecification,
passenger_specifications: Vec<AnonymousPassengerSpecification>,
start_date_time: String,
end_date_time: String,
) -> OfferOverviewRouteRequest
pub fn new( route_specification: RouteSpecification, passenger_specifications: Vec<AnonymousPassengerSpecification>, start_date_time: String, end_date_time: String, ) -> OfferOverviewRouteRequest
Defines the parameters needed to request an offer overview for a route. Travel class and flexibility are optional parameters to filter the desired offers.
Trait Implementations§
Source§impl Clone for OfferOverviewRouteRequest
impl Clone for OfferOverviewRouteRequest
Source§fn clone(&self) -> OfferOverviewRouteRequest
fn clone(&self) -> OfferOverviewRouteRequest
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 OfferOverviewRouteRequest
impl Debug for OfferOverviewRouteRequest
Source§impl Default for OfferOverviewRouteRequest
impl Default for OfferOverviewRouteRequest
Source§fn default() -> OfferOverviewRouteRequest
fn default() -> OfferOverviewRouteRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OfferOverviewRouteRequest
impl<'de> Deserialize<'de> for OfferOverviewRouteRequest
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
impl StructuralPartialEq for OfferOverviewRouteRequest
Auto Trait Implementations§
impl Freeze for OfferOverviewRouteRequest
impl RefUnwindSafe for OfferOverviewRouteRequest
impl Send for OfferOverviewRouteRequest
impl Sync for OfferOverviewRouteRequest
impl Unpin for OfferOverviewRouteRequest
impl UnwindSafe for OfferOverviewRouteRequest
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