google_maps/time_zone/request/
get.rs

1impl crate::time_zone::Request<'_> {
2    /// Performs the HTTP get request and returns the response.
3    ///
4    /// ## Arguments
5    ///
6    /// This method accepts no arguments.
7    ///
8    /// ## Notes
9    ///
10    /// * The `get` method for this request has been moved to a `get` method
11    ///   that's been generically implemented for all APIs and services,
12    ///   implemented on the `google_maps::Client` struct.
13    ///
14    ///   Try using `execute` method for a somewhat similar result. The main
15    ///   difference is that the execute method will validate the request and
16    ///   build the URL string, whereas the previous `get` implementation
17    ///   (that's been deprecated) would blindly submit the request, if any.
18    #[deprecated(note = "try using `execute` instead", since = "3.8.0")]
19    pub async fn get(
20        self
21    ) -> Result<crate::time_zone::Response, crate::Error> {
22        self.client.get_request(self).await
23    } // fn
24} // impl