google_maps/geocoding/forward/new.rs
1// =============================================================================
2
3impl<'a> crate::geocoding::forward::ForwardRequest<'a> {
4 // -------------------------------------------------------------------------
5 //
6 /// Initializes the builder pattern for a Geolocation API query with the
7 /// required, non-optional parameters.
8 ///
9 /// ## Arguments
10 ///
11 /// * `client` ‧ Your application's Google Maps API client struct.
12 #[must_use]
13 pub const fn new(client: &'a crate::client::Client) -> Self {
14 // Instantiate struct and return it to caller:
15 Self {
16 // Required parameters:
17 client,
18 // Optional parameters:
19 address: None,
20 place_id: None,
21 bounds: None,
22 components: Vec::new(),
23 language: None,
24 region: None,
25 } // struct
26 } // fn
27} // impl