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
// =============================================================================
impl<'r> crate::places::place_autocomplete::request::Request<'r> {
// -------------------------------------------------------------------------
//
/// Initializes the builder pattern for a Place API Place Autocomplete query
/// with the required, non-optional parameters.
///
/// ## Arguments
///
/// * `client` ‧ Your application's Google Maps API client struct.
///
/// * `input` ‧ The text string on which to search.
#[must_use]
pub fn new(
client: &'r crate::client::Client,
input: impl Into<String>
) -> Self {
// Instantiate struct and return it to caller:
Self {
// Required parameters:
client,
input: input.into(),
// Optional parameters:
components: vec![],
language: None,
location: None,
offset: None,
origin: None,
radius: None,
region: None,
sessiontoken: None,
strictbounds: None,
types: vec![],
} // struct
} // fn
} // impl