google_maps/directions/request/
build.rs

1impl<'r> crate::directions::Request<'r> {
2    /// Builds the URL [query string](https://en.wikipedia.org/wiki/Query_string)
3    /// for the HTTP [GET](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET)
4    /// request.
5    ///
6    /// ## Arguments
7    ///
8    /// This method accepts no arguments.
9    ///
10    /// ## Notes
11    ///
12    /// * The query string is the part of the URL after the `?` question mark.
13    ///   For example, in the URL `https://example.com/over/there?name=ferret`
14    ///   the query string is `name=ferret`
15    ///
16    /// * The `build` method has been removed. It would store the generated
17    ///   query string inside of the request structure.
18    ///
19    ///   This way, the same query string would only have to be generated once
20    ///   and could be used for any subsequent retries. This increased
21    ///   implementation complexity but had very performance little benefit. It
22    ///   has been removed.
23    ///
24    ///   If you want to generate a query string (without the preceding URL),
25    ///   try the `query_string` method.
26    #[deprecated(note = "try using the `query_string` method instead", since = "3.8.0")]
27    pub fn build(
28        &'r mut self
29    ) -> Result<&'r mut Self, crate::directions::Error> {
30        Ok(self)
31    } // fn
32} // impl