openai_struct/models/
double_click.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 DoubleClick : A double click action.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct DoubleClick {
18    /// Specifies the event type. For a double click action, this property is  always set to `double_click`.
19    #[serde(rename = "type")]
20    #[serde(default = "default_type")]
21    pub _type: String,
22    /// The x-coordinate where the double click occurred.
23    #[serde(rename = "x")]
24    pub x: i32,
25    /// The y-coordinate where the double click occurred.
26    #[serde(rename = "y")]
27    pub y: i32,
28}
29
30fn default_type() -> String {
31    "double_click".into()
32}