| 1 | use crate::Place; |
| 2 | |
| 3 | /// The response given by [`Provider::locations`](crate::Provider::locations) |
| 4 | pub type LocationsResponse = Vec<Place>; |
| 5 | |
| 6 | #[derive(Debug)] |
| 7 | /// The options for [`Provider::locations`](crate::Provider::locations) |
| 8 | pub struct LocationsOptions { |
| 9 | /// What to query for. |
| 10 | pub query: String, |
| 11 | /// How many results to return. |
| 12 | pub results: u64, |
| 13 | /// What language to query in. |
| 14 | pub language: Option<String>, |
| 15 | } |
| 16 | |
| 17 | impl Default for LocationsOptions { |
| 18 | fn default() -> Self { |
| 19 | Self { |
| 20 | query: Default::default(), |
| 21 | results: 10, |
| 22 | language: Default::default(), |
| 23 | } |
| 24 | } |
| 25 | } |