openai_struct/models/
coordinate.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 Coordinate : An x/y coordinate pair, e.g. `{ pub x: 100, pub y: 200 }`.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16/// # on openapi.yaml
17///
18/// ```yaml
19/// Coordinate:
20///   type: object
21///   title: Coordinate
22///   description: |
23///     An x/y coordinate pair, e.g. `{ x: 100, y: 200 }`.
24///   properties:
25///     x:
26///       type: integer
27///       description: |
28///         The x-coordinate.
29///     y:
30///       type: integer
31///       description: |
32///         The y-coordinate.
33///   required:
34///     - x
35///     - y
36/// ```
37#[derive(Debug, Serialize, Deserialize, Clone)]
38pub struct Coordinate {
39    /// The x-coordinate.
40    #[serde(rename = "x")]
41    pub x: i32,
42    /// The y-coordinate.
43    #[serde(rename = "y")]
44    pub y: i32,
45}