openai_struct/models/computer_action.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#[allow(unused_imports)]
12use serde_json::Value;
13
14use crate::{
15 Click,
16 DoubleClick,
17 Drag,
18 KeyPress,
19 Screenshot,
20 Scroll,
21 Wait,
22 // Type, Move,
23};
24
25/// # on openapi.yaml
26///
27/// ```yaml
28/// ComputerAction:
29/// oneOf:
30/// - $ref: "#/components/schemas/Click"
31/// - $ref: "#/components/schemas/DoubleClick"
32/// - $ref: "#/components/schemas/Drag"
33/// - $ref: "#/components/schemas/KeyPress"
34/// - $ref: "#/components/schemas/Move"
35/// - $ref: "#/components/schemas/Screenshot"
36/// - $ref: "#/components/schemas/Scroll"
37/// - $ref: "#/components/schemas/Type"
38/// - $ref: "#/components/schemas/Wait"
39/// ```
40#[derive(Debug, Serialize, Deserialize)]
41pub enum ComputerAction {
42 Click(Click),
43 DoubleClick(DoubleClick),
44 Drag(Drag),
45 KeyPress(KeyPress),
46 Screenshot(Screenshot),
47 Scroll(Scroll),
48 Wait(Wait),
49 // todo: 这俩类型没自动生成
50 Type,
51 Move,
52}