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
use crate::geocoding::forward::ForwardRequest; impl ForwardRequest { /// Initializes the builder pattern for a Geolocation API query with the /// required, non-optional parameters. /// /// # Arguments: /// /// * `key` - Your application's Google Cloud API key. pub fn new(key: String) -> ForwardRequest { // Instantiate struct and return it to caller: ForwardRequest { // Required parameters: key, // Optional parameters: address: None, bounds: None, components: None, language: None, region: None, // Internal use only: validated: false, query: None, } // struct } // fn } // impl