openai_struct/models/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 Click : A click action.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16/// # on openapi.yaml
17///
18/// ```yaml
19/// Click:
20/// type: object
21/// title: Click
22/// description: |
23/// A click action.
24/// properties:
25/// type:
26/// type: string
27/// enum:
28/// - click
29/// default: click
30/// description: |
31/// Specifies the event type. For a click action, this property is
32/// always set to `click`.
33/// x-stainless-const: true
34/// button:
35/// type: string
36/// enum:
37/// - left
38/// - right
39/// - wheel
40/// - back
41/// - forward
42/// description: >
43/// Indicates which mouse button was pressed during the click. One of
44/// `left`, `right`, `wheel`, `back`, or `forward`.
45/// x:
46/// type: integer
47/// description: |
48/// The x-coordinate where the click occurred.
49/// y:
50/// type: integer
51/// description: |
52/// The y-coordinate where the click occurred.
53/// required:
54/// - type
55/// - button
56/// - x
57/// - y
58/// ```
59#[derive(Debug, Serialize, Deserialize)]
60pub struct Click {
61 /// Indicates which mouse button was pressed during the click. One of `left`, `right`, `wheel`, `back`, or `forward`.
62 #[serde(rename = "button")]
63 pub button: String,
64 /// Specifies the event type. For a click action, this property is always set to `click`.
65 #[serde(rename = "type")]
66 pub _type: String,
67 /// The x-coordinate where the click occurred.
68 #[serde(rename = "x")]
69 pub x: i32,
70 /// The y-coordinate where the click occurred.
71 #[serde(rename = "y")]
72 pub y: i32,
73}