openai_struct/models/
web_search_location.rs

1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11/// pub WebSearchLocation : Approximate location parameters for the search.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct WebSearchLocation {
18    /// Free text input for the city of the user, e.g. `San Francisco`.
19    #[serde(rename = "city")]
20    pub city: Option<String>,
21    /// The two-letter  [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of the user, e.g. `US`.
22    #[serde(rename = "country")]
23    pub country: Option<String>,
24    /// Free text input for the region of the user, e.g. `California`.
25    #[serde(rename = "region")]
26    pub region: Option<String>,
27    /// The [IANA timezone](https://timeapi.io/documentation/iana-timezones)  of the user, e.g. `America/Los_Angeles`.
28    #[serde(rename = "timezone")]
29    pub timezone: Option<String>,
30}