google_maps/geocoding/reverse/
request_headers.rs

1use reqwest::header::HeaderMap;
2
3// -------------------------------------------------------------------------------------------------
4
5impl crate::traits::RequestHeaders for crate::geocoding::ReverseRequest<'_> {
6    /// Returns a map of HTTP header names to values.
7    ///
8    /// These headers will be added to the HTTP request alongside the standard headers like
9    /// `Content-Type`.
10    ///
11    /// This API end-point does not use headers so it returns an empty hash map.
12    fn request_headers(&self) -> HeaderMap {
13        HeaderMap::default()  // No additional, extra or custom headers
14    }
15
16    /// Returns whether the `X-Goog-Api-Key` header should be set for this request.
17    fn send_x_goog_api_key() -> bool {
18        false
19    }
20}