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_details::request::Request<'r> {
// -------------------------------------------------------------------------
//
/// Initializes the builder pattern for a Places API _Place Details_ query
/// with the required, non-optional parameters.
///
/// ## Arguments
///
/// * `client` ‧ Your application's Google Maps API client struct.
///
/// * `place_id` ‧ A textual identifier that uniquely identifies a place,
/// returned from a
/// [Place Search](https://developers.google.com/maps/documentation/places/web-service/search).
/// For more information about place IDs, see the
/// [place ID overview](https://developers.google.com/maps/documentation/places/web-service/place-id).
#[must_use]
pub fn new(
client: &'r crate::client::Client,
place_id: impl Into<String>
) -> Self {
// Instantiate struct and return it to caller:
Self {
// Required parameters:
client,
place_id: place_id.into(),
// Optional parameters:
fields: Vec::new(),
language: None,
region: None,
reviews_no_translations: None,
reviews_sort: None,
sessiontoken: None,
} // struct
} // fn
} // impl