1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
use crate::directions::request::location::Location;
// =============================================================================
impl<'a> crate::directions::request::Request<'a> {
// -------------------------------------------------------------------------
//
/// Initializes the data structure for the builder pattern.
///
/// ## Arguments
///
/// This method accepts no arguments.
#[must_use]
pub const fn new(
client: &'a crate::client::Client,
origin: Location,
destination: Location
) -> Self {
Self {
// Required parameters:
client,
destination,
origin,
// Optional parameters:
alternatives: None,
arrival_time: None,
departure_time: None,
language: None,
region: None,
restrictions: Vec::new(),
traffic_model: None,
transit_modes: Vec::new(),
transit_route_preference: None,
travel_mode: None,
unit_system: None,
waypoint_optimization: false,
waypoints: Vec::new(),
} // struct
} // fn
} // impl