Skip to main content

ComputerUseActionDtoAction

Enum ComputerUseActionDtoAction 

Source
pub enum ComputerUseActionDtoAction {
Show 15 variants Variant0 { button: f64, call_id: Option<String>, hold_key: Option<String>, relative: Option<bool>, type_: ComputerUseActionDtoActionVariant0Type, x: ComputerUseActionDtoActionVariant0X, y: ComputerUseActionDtoActionVariant0Y, }, Variant1 { button: f64, call_id: Option<String>, hold_key: Option<String>, relative: Option<bool>, type_: ComputerUseActionDtoActionVariant1Type, x: ComputerUseActionDtoActionVariant1X, y: ComputerUseActionDtoActionVariant1Y, }, Variant2 { button: f64, call_id: Option<String>, hold_key: Option<String>, relative: Option<bool>, type_: ComputerUseActionDtoActionVariant2Type, x: ComputerUseActionDtoActionVariant2X, y: ComputerUseActionDtoActionVariant2Y, }, Variant3 { call_id: Option<String>, hold_key: Option<String>, relative: Option<bool>, type_: ComputerUseActionDtoActionVariant3Type, x: ComputerUseActionDtoActionVariant3X, y: ComputerUseActionDtoActionVariant3Y, }, Variant4 { call_id: Option<String>, hold_key: Option<String>, relative: Option<bool>, step_horizontal: f64, step_vertical: f64, type_: ComputerUseActionDtoActionVariant4Type, x: ComputerUseActionDtoActionVariant4X, y: ComputerUseActionDtoActionVariant4Y, }, Variant5 { button: Option<f64>, call_id: Option<String>, end_relative: Option<bool>, end_x: ComputerUseActionDtoActionVariant5EndX, end_y: ComputerUseActionDtoActionVariant5EndY, hold_key: Option<String>, start_relative: Option<bool>, start_x: ComputerUseActionDtoActionVariant5StartX, start_y: ComputerUseActionDtoActionVariant5StartY, type_: ComputerUseActionDtoActionVariant5Type, }, Variant6 { call_id: Option<String>, content: String, treat_new_line_as_enter: Option<bool>, type_: ComputerUseActionDtoActionVariant6Type, }, Variant7 { call_id: Option<String>, duration: Option<f64>, keys: String, type_: ComputerUseActionDtoActionVariant7Type, }, Variant8 { call_id: Option<String>, type_: ComputerUseActionDtoActionVariant8Type, }, Variant9 { call_id: Option<String>, duration: f64, type_: ComputerUseActionDtoActionVariant9Type, }, Variant10 { call_id: Option<String>, message: Option<String>, type_: ComputerUseActionDtoActionVariant10Type, }, Variant11 { call_id: Option<String>, message: Option<String>, type_: ComputerUseActionDtoActionVariant11Type, }, Variant12 { call_id: Option<String>, type_: ComputerUseActionDtoActionVariant12Type, }, Variant13 { call_id: Option<String>, key: String, type_: ComputerUseActionDtoActionVariant13Type, }, Variant14 { call_id: Option<String>, key: String, type_: ComputerUseActionDtoActionVariant14Type, },
}
Expand description

All possible computer use actions, with optional callId

JSON schema
{
 "description": "All possible computer use actions, with optional callId",
 "oneOf": [
   {
     "description": "Click the mouse at the specified coordinates",
     "type": "object",
     "required": [
       "button",
       "type",
       "x",
       "y"
     ],
     "properties": {
       "button": {
         "description": "Mouse button flag combination. 1: left, 2: right, 4: middle, 8: back, 16: forward; add them together to press multiple buttons at once.",
         "type": "number"
       },
       "holdKey": {
         "description": "Key to hold down during click, in xdotool key syntax. Example: \"ctrl\", \"alt\", \"alt+shift\".",
         "type": "string"
       },
       "relative": {
         "description": "Whether the coordinates are relative to the current mouse position.",
         "type": "boolean"
       },
       "type": {
         "type": "string",
         "enum": [
           "mouse:click"
         ]
       },
       "x": {
         "description": "X coordinate",
         "oneOf": [
           {
             "description": "Length in pixels",
             "type": "object",
             "required": [
               "type",
               "value"
             ],
             "properties": {
               "type": {
                 "description": "Indicates the unit is pixel",
                 "type": "string",
                 "enum": [
                   "px"
                 ]
               },
               "value": {
                 "description": "Length in pixels",
                 "type": "number"
               }
             }
           },
           {
             "description": "Length as a fraction",
             "type": "object",
             "required": [
               "denominator",
               "numerator",
               "type"
             ],
             "properties": {
               "denominator": {
                 "description": "Denominator of the fraction",
                 "type": "number"
               },
               "numerator": {
                 "description": "Numerator of the fraction",
                 "type": "number"
               },
               "type": {
                 "type": "string",
                 "enum": [
                   "/"
                 ]
               }
             }
           }
         ]
       },
       "y": {
         "description": "Y coordinate",
         "oneOf": [
           {
             "description": "Length in pixels",
             "type": "object",
             "required": [
               "type",
               "value"
             ],
             "properties": {
               "type": {
                 "description": "Indicates the unit is pixel",
                 "type": "string",
                 "enum": [
                   "px"
                 ]
               },
               "value": {
                 "description": "Length in pixels",
                 "type": "number"
               }
             }
           },
           {
             "description": "Length as a fraction",
             "type": "object",
             "required": [
               "denominator",
               "numerator",
               "type"
             ],
             "properties": {
               "denominator": {
                 "description": "Denominator of the fraction",
                 "type": "number"
               },
               "numerator": {
                 "description": "Numerator of the fraction",
                 "type": "number"
               },
               "type": {
                 "type": "string",
                 "enum": [
                   "/"
                 ]
               }
             }
           }
         ]
       }
     }
   },
   {
     "description": "Double click the mouse at the specified coordinates",
     "type": "object",
     "required": [
       "button",
       "type",
       "x",
       "y"
     ],
     "properties": {
       "button": {
         "description": "Mouse button index",
         "type": "number"
       },
       "holdKey": {
         "description": "Key to hold down during double click, in xdotool key syntax. Example: \"ctrl\", \"alt\", \"alt+shift\".",
         "type": "string"
       },
       "relative": {
         "description": "Whether the coordinates are relative to the current mouse position.",
         "type": "boolean"
       },
       "type": {
         "type": "string",
         "enum": [
           "mouse:doubleClick"
         ]
       },
       "x": {
         "description": "X coordinate",
         "oneOf": [
           {
             "description": "Length in pixels",
             "type": "object",
             "required": [
               "type",
               "value"
             ],
             "properties": {
               "type": {
                 "description": "Indicates the unit is pixel",
                 "type": "string",
                 "enum": [
                   "px"
                 ]
               },
               "value": {
                 "description": "Length in pixels",
                 "type": "number"
               }
             }
           },
           {
             "description": "Length as a fraction",
             "type": "object",
             "required": [
               "denominator",
               "numerator",
               "type"
             ],
             "properties": {
               "denominator": {
                 "description": "Denominator of the fraction",
                 "type": "number"
               },
               "numerator": {
                 "description": "Numerator of the fraction",
                 "type": "number"
               },
               "type": {
                 "type": "string",
                 "enum": [
                   "/"
                 ]
               }
             }
           }
         ]
       },
       "y": {
         "description": "Y coordinate",
         "oneOf": [
           {
             "description": "Length in pixels",
             "type": "object",
             "required": [
               "type",
               "value"
             ],
             "properties": {
               "type": {
                 "description": "Indicates the unit is pixel",
                 "type": "string",
                 "enum": [
                   "px"
                 ]
               },
               "value": {
                 "description": "Length in pixels",
                 "type": "number"
               }
             }
           },
           {
             "description": "Length as a fraction",
             "type": "object",
             "required": [
               "denominator",
               "numerator",
               "type"
             ],
             "properties": {
               "denominator": {
                 "description": "Denominator of the fraction",
                 "type": "number"
               },
               "numerator": {
                 "description": "Numerator of the fraction",
                 "type": "number"
               },
               "type": {
                 "type": "string",
                 "enum": [
                   "/"
                 ]
               }
             }
           }
         ]
       }
     }
   },
   {
     "description": "Triple click the mouse at the specified coordinates",
     "type": "object",
     "required": [
       "button",
       "type",
       "x",
       "y"
     ],
     "properties": {
       "button": {
         "description": "Mouse button index",
         "type": "number"
       },
       "holdKey": {
         "description": "Key to hold down during triple click, in xdotool key syntax. Example: \"ctrl\", \"alt\", \"alt+shift\".",
         "type": "string"
       },
       "relative": {
         "description": "Whether the coordinates are relative to the current mouse position.",
         "type": "boolean"
       },
       "type": {
         "type": "string",
         "enum": [
           "mouse:tripleClick"
         ]
       },
       "x": {
         "description": "X coordinate",
         "oneOf": [
           {
             "description": "Length in pixels",
             "type": "object",
             "required": [
               "type",
               "value"
             ],
             "properties": {
               "type": {
                 "description": "Indicates the unit is pixel",
                 "type": "string",
                 "enum": [
                   "px"
                 ]
               },
               "value": {
                 "description": "Length in pixels",
                 "type": "number"
               }
             }
           },
           {
             "description": "Length as a fraction",
             "type": "object",
             "required": [
               "denominator",
               "numerator",
               "type"
             ],
             "properties": {
               "denominator": {
                 "description": "Denominator of the fraction",
                 "type": "number"
               },
               "numerator": {
                 "description": "Numerator of the fraction",
                 "type": "number"
               },
               "type": {
                 "type": "string",
                 "enum": [
                   "/"
                 ]
               }
             }
           }
         ]
       },
       "y": {
         "description": "Y coordinate",
         "oneOf": [
           {
             "description": "Length in pixels",
             "type": "object",
             "required": [
               "type",
               "value"
             ],
             "properties": {
               "type": {
                 "description": "Indicates the unit is pixel",
                 "type": "string",
                 "enum": [
                   "px"
                 ]
               },
               "value": {
                 "description": "Length in pixels",
                 "type": "number"
               }
             }
           },
           {
             "description": "Length as a fraction",
             "type": "object",
             "required": [
               "denominator",
               "numerator",
               "type"
             ],
             "properties": {
               "denominator": {
                 "description": "Denominator of the fraction",
                 "type": "number"
               },
               "numerator": {
                 "description": "Numerator of the fraction",
                 "type": "number"
               },
               "type": {
                 "type": "string",
                 "enum": [
                   "/"
                 ]
               }
             }
           }
         ]
       }
     }
   },
   {
     "description": "Move the mouse to the specified coordinates",
     "type": "object",
     "required": [
       "type",
       "x",
       "y"
     ],
     "properties": {
       "holdKey": {
         "description": "Key to hold down during move, in xdotool key syntax. Example: \"ctrl\", \"alt\", \"alt+shift\".",
         "type": "string"
       },
       "relative": {
         "description": "Whether the coordinates are relative to the current mouse position.",
         "type": "boolean"
       },
       "type": {
         "type": "string",
         "enum": [
           "mouse:move"
         ]
       },
       "x": {
         "description": "X coordinate",
         "oneOf": [
           {
             "description": "Length in pixels",
             "type": "object",
             "required": [
               "type",
               "value"
             ],
             "properties": {
               "type": {
                 "description": "Indicates the unit is pixel",
                 "type": "string",
                 "enum": [
                   "px"
                 ]
               },
               "value": {
                 "description": "Length in pixels",
                 "type": "number"
               }
             }
           },
           {
             "description": "Length as a fraction",
             "type": "object",
             "required": [
               "denominator",
               "numerator",
               "type"
             ],
             "properties": {
               "denominator": {
                 "description": "Denominator of the fraction",
                 "type": "number"
               },
               "numerator": {
                 "description": "Numerator of the fraction",
                 "type": "number"
               },
               "type": {
                 "type": "string",
                 "enum": [
                   "/"
                 ]
               }
             }
           }
         ]
       },
       "y": {
         "description": "Y coordinate",
         "oneOf": [
           {
             "description": "Length in pixels",
             "type": "object",
             "required": [
               "type",
               "value"
             ],
             "properties": {
               "type": {
                 "description": "Indicates the unit is pixel",
                 "type": "string",
                 "enum": [
                   "px"
                 ]
               },
               "value": {
                 "description": "Length in pixels",
                 "type": "number"
               }
             }
           },
           {
             "description": "Length as a fraction",
             "type": "object",
             "required": [
               "denominator",
               "numerator",
               "type"
             ],
             "properties": {
               "denominator": {
                 "description": "Denominator of the fraction",
                 "type": "number"
               },
               "numerator": {
                 "description": "Numerator of the fraction",
                 "type": "number"
               },
               "type": {
                 "type": "string",
                 "enum": [
                   "/"
                 ]
               }
             }
           }
         ]
       }
     }
   },
   {
     "description": "Scroll the mouse",
     "type": "object",
     "required": [
       "stepHorizontal",
       "stepVertical",
       "type",
       "x",
       "y"
     ],
     "properties": {
       "holdKey": {
         "description": "Key to hold down during scroll, in xdotool key syntax. Example: \"ctrl\", \"alt\", \"alt+shift\".",
         "type": "string"
       },
       "relative": {
         "description": "Whether the coordinates are relative to the current mouse position.",
         "type": "boolean"
       },
       "stepHorizontal": {
         "description": "Horizontal scroll steps",
         "type": "number"
       },
       "stepVertical": {
         "description": "Vertical scroll steps",
         "type": "number"
       },
       "type": {
         "type": "string",
         "enum": [
           "mouse:scroll"
         ]
       },
       "x": {
         "description": "X coordinate",
         "oneOf": [
           {
             "description": "Length in pixels",
             "type": "object",
             "required": [
               "type",
               "value"
             ],
             "properties": {
               "type": {
                 "description": "Indicates the unit is pixel",
                 "type": "string",
                 "enum": [
                   "px"
                 ]
               },
               "value": {
                 "description": "Length in pixels",
                 "type": "number"
               }
             }
           },
           {
             "description": "Length as a fraction",
             "type": "object",
             "required": [
               "denominator",
               "numerator",
               "type"
             ],
             "properties": {
               "denominator": {
                 "description": "Denominator of the fraction",
                 "type": "number"
               },
               "numerator": {
                 "description": "Numerator of the fraction",
                 "type": "number"
               },
               "type": {
                 "type": "string",
                 "enum": [
                   "/"
                 ]
               }
             }
           }
         ]
       },
       "y": {
         "description": "Y coordinate",
         "oneOf": [
           {
             "description": "Length in pixels",
             "type": "object",
             "required": [
               "type",
               "value"
             ],
             "properties": {
               "type": {
                 "description": "Indicates the unit is pixel",
                 "type": "string",
                 "enum": [
                   "px"
                 ]
               },
               "value": {
                 "description": "Length in pixels",
                 "type": "number"
               }
             }
           },
           {
             "description": "Length as a fraction",
             "type": "object",
             "required": [
               "denominator",
               "numerator",
               "type"
             ],
             "properties": {
               "denominator": {
                 "description": "Denominator of the fraction",
                 "type": "number"
               },
               "numerator": {
                 "description": "Numerator of the fraction",
                 "type": "number"
               },
               "type": {
                 "type": "string",
                 "enum": [
                   "/"
                 ]
               }
             }
           }
         ]
       }
     }
   },
   {
     "description": "Drag the mouse from start to end coordinates",
     "type": "object",
     "required": [
       "endX",
       "endY",
       "startX",
       "startY",
       "type"
     ],
     "properties": {
       "button": {
         "description": "Mouse button index",
         "type": "number"
       },
       "endRelative": {
         "description": "Whether the coordinates are relative to the current mouse position.",
         "type": "boolean"
       },
       "endX": {
         "description": "End X coordinate",
         "oneOf": [
           {
             "description": "Length in pixels",
             "type": "object",
             "required": [
               "type",
               "value"
             ],
             "properties": {
               "type": {
                 "description": "Indicates the unit is pixel",
                 "type": "string",
                 "enum": [
                   "px"
                 ]
               },
               "value": {
                 "description": "Length in pixels",
                 "type": "number"
               }
             }
           },
           {
             "description": "Length as a fraction",
             "type": "object",
             "required": [
               "denominator",
               "numerator",
               "type"
             ],
             "properties": {
               "denominator": {
                 "description": "Denominator of the fraction",
                 "type": "number"
               },
               "numerator": {
                 "description": "Numerator of the fraction",
                 "type": "number"
               },
               "type": {
                 "type": "string",
                 "enum": [
                   "/"
                 ]
               }
             }
           }
         ]
       },
       "endY": {
         "description": "End Y coordinate",
         "oneOf": [
           {
             "description": "Length in pixels",
             "type": "object",
             "required": [
               "type",
               "value"
             ],
             "properties": {
               "type": {
                 "description": "Indicates the unit is pixel",
                 "type": "string",
                 "enum": [
                   "px"
                 ]
               },
               "value": {
                 "description": "Length in pixels",
                 "type": "number"
               }
             }
           },
           {
             "description": "Length as a fraction",
             "type": "object",
             "required": [
               "denominator",
               "numerator",
               "type"
             ],
             "properties": {
               "denominator": {
                 "description": "Denominator of the fraction",
                 "type": "number"
               },
               "numerator": {
                 "description": "Numerator of the fraction",
                 "type": "number"
               },
               "type": {
                 "type": "string",
                 "enum": [
                   "/"
                 ]
               }
             }
           }
         ]
       },
       "holdKey": {
         "description": "Key to hold down during drag, in xdotool key syntax. Example: \"ctrl\", \"alt\", \"alt+shift\".",
         "type": "string"
       },
       "startRelative": {
         "description": "Whether the coordinates are relative to the current mouse position.",
         "type": "boolean"
       },
       "startX": {
         "description": "Start X coordinate",
         "oneOf": [
           {
             "description": "Length in pixels",
             "type": "object",
             "required": [
               "type",
               "value"
             ],
             "properties": {
               "type": {
                 "description": "Indicates the unit is pixel",
                 "type": "string",
                 "enum": [
                   "px"
                 ]
               },
               "value": {
                 "description": "Length in pixels",
                 "type": "number"
               }
             }
           },
           {
             "description": "Length as a fraction",
             "type": "object",
             "required": [
               "denominator",
               "numerator",
               "type"
             ],
             "properties": {
               "denominator": {
                 "description": "Denominator of the fraction",
                 "type": "number"
               },
               "numerator": {
                 "description": "Numerator of the fraction",
                 "type": "number"
               },
               "type": {
                 "type": "string",
                 "enum": [
                   "/"
                 ]
               }
             }
           }
         ]
       },
       "startY": {
         "description": "Start Y coordinate",
         "oneOf": [
           {
             "description": "Length in pixels",
             "type": "object",
             "required": [
               "type",
               "value"
             ],
             "properties": {
               "type": {
                 "description": "Indicates the unit is pixel",
                 "type": "string",
                 "enum": [
                   "px"
                 ]
               },
               "value": {
                 "description": "Length in pixels",
                 "type": "number"
               }
             }
           },
           {
             "description": "Length as a fraction",
             "type": "object",
             "required": [
               "denominator",
               "numerator",
               "type"
             ],
             "properties": {
               "denominator": {
                 "description": "Denominator of the fraction",
                 "type": "number"
               },
               "numerator": {
                 "description": "Numerator of the fraction",
                 "type": "number"
               },
               "type": {
                 "type": "string",
                 "enum": [
                   "/"
                 ]
               }
             }
           }
         ]
       },
       "type": {
         "type": "string",
         "enum": [
           "mouse:drag"
         ]
       }
     }
   },
   {
     "description": "Type text content",
     "type": "object",
     "required": [
       "content",
       "treatNewLineAsEnter",
       "type"
     ],
     "properties": {
       "content": {
         "description": "Text content to type",
         "type": "string"
       },
       "treatNewLineAsEnter": {
         "description": "Whether to treat line breaks as enter. If true, any line breaks(\\n) in content will be treated as enter key press, and content will be split into multiple lines.",
         "default": false,
         "type": [
           "boolean",
           "null"
         ]
       },
       "type": {
         "type": "string",
         "enum": [
           "keyboard:type"
         ]
       }
     }
   },
   {
     "description": "Press a keyboard hotkey",
     "type": "object",
     "required": [
       "keys",
       "type"
     ],
     "properties": {
       "duration": {
         "description": "Duration in milliseconds. If specified, the hotkey will be held for a while and then released.",
         "type": "number",
         "maximum": 5000.0,
         "minimum": 1.0
       },
       "keys": {
         "description": "Hotkey combination, in xdotool key syntax. Examples: \"a\", \"Return\", \"alt+Tab\", \"ctrl+s\", \"Up\", \"KP_0\" (for the numpad 0 key).",
         "type": "string"
       },
       "type": {
         "type": "string",
         "enum": [
           "keyboard:hotkey"
         ]
       }
     }
   },
   {
     "description": "Take a screenshot of the current screen",
     "type": "object",
     "required": [
       "type"
     ],
     "properties": {
       "type": {
         "type": "string",
         "enum": [
           "screenshot"
         ]
       }
     }
   },
   {
     "description": "Wait for a specified duration",
     "type": "object",
     "required": [
       "duration",
       "type"
     ],
     "properties": {
       "duration": {
         "description": "Duration in milliseconds",
         "type": "number"
       },
       "type": {
         "type": "string",
         "enum": [
           "wait"
         ]
       }
     }
   },
   {
     "description": "Indicates the action has finished",
     "type": "object",
     "required": [
       "type"
     ],
     "properties": {
       "message": {
         "description": "Completion message",
         "type": "string"
       },
       "type": {
         "type": "string",
         "enum": [
           "finished"
         ]
       }
     }
   },
   {
     "description": "Indicates the action has failed",
     "type": "object",
     "required": [
       "type"
     ],
     "properties": {
       "message": {
         "description": "Failure message",
         "type": "string"
       },
       "type": {
         "type": "string",
         "enum": [
           "failed"
         ]
       }
     }
   },
   {
     "description": "Indicates the human user should take over the control",
     "type": "object",
     "required": [
       "type"
     ],
     "properties": {
       "type": {
         "type": "string",
         "enum": [
           "client:user-takeover"
         ]
       }
     }
   },
   {
     "description": "Press ONE key down, in xdotool key syntax. Only use this action if hotkey or type cannot satisfy your needs.",
     "type": "object",
     "required": [
       "key",
       "type"
     ],
     "properties": {
       "key": {
         "description": "Key to press",
         "type": "string"
       },
       "type": {
         "type": "string",
         "enum": [
           "key:down"
         ]
       }
     }
   },
   {
     "description": "Release ONE key, in xdotool key syntax. Only use this action if keydown cannot satisfy your needs and only after a key down.",
     "type": "object",
     "required": [
       "key",
       "type"
     ],
     "properties": {
       "key": {
         "description": "Key to release",
         "type": "string"
       },
       "type": {
         "type": "string",
         "enum": [
           "key:up"
         ]
       }
     }
   }
 ],
 "properties": {
   "callId": {
     "description": "Optional call identifier",
     "type": "string"
   }
 }
}

Variants§

§

Variant0

Fields

§button: f64
§call_id: Option<String>

Optional call identifier

§hold_key: Option<String>

Key to hold down during click, in xdotool key syntax. Example: “ctrl”, “alt”, “alt+shift”.

§relative: Option<bool>

Whether the coordinates are relative to the current mouse position.

§

Variant1

Fields

§button: f64
§call_id: Option<String>

Optional call identifier

§hold_key: Option<String>

Key to hold down during double click, in xdotool key syntax. Example: “ctrl”, “alt”, “alt+shift”.

§relative: Option<bool>

Whether the coordinates are relative to the current mouse position.

§

Variant2

Fields

§button: f64
§call_id: Option<String>

Optional call identifier

§hold_key: Option<String>

Key to hold down during triple click, in xdotool key syntax. Example: “ctrl”, “alt”, “alt+shift”.

§relative: Option<bool>

Whether the coordinates are relative to the current mouse position.

§

Variant3

Fields

§call_id: Option<String>

Optional call identifier

§hold_key: Option<String>

Key to hold down during move, in xdotool key syntax. Example: “ctrl”, “alt”, “alt+shift”.

§relative: Option<bool>

Whether the coordinates are relative to the current mouse position.

§

Variant4

Fields

§call_id: Option<String>

Optional call identifier

§hold_key: Option<String>

Key to hold down during scroll, in xdotool key syntax. Example: “ctrl”, “alt”, “alt+shift”.

§relative: Option<bool>

Whether the coordinates are relative to the current mouse position.

§step_horizontal: f64
§step_vertical: f64
§

Variant5

Fields

§button: Option<f64>
§call_id: Option<String>

Optional call identifier

§end_relative: Option<bool>

Whether the coordinates are relative to the current mouse position.

§hold_key: Option<String>

Key to hold down during drag, in xdotool key syntax. Example: “ctrl”, “alt”, “alt+shift”.

§start_relative: Option<bool>

Whether the coordinates are relative to the current mouse position.

§start_x: ComputerUseActionDtoActionVariant5StartX

Start X coordinate

§start_y: ComputerUseActionDtoActionVariant5StartY

Start Y coordinate

§

Variant6

Fields

§call_id: Option<String>

Optional call identifier

§content: String

Text content to type

§treat_new_line_as_enter: Option<bool>

Whether to treat line breaks as enter. If true, any line breaks(\n) in content will be treated as enter key press, and content will be split into multiple lines.

§

Variant7

Fields

§call_id: Option<String>

Optional call identifier

§duration: Option<f64>
§keys: String

Hotkey combination, in xdotool key syntax. Examples: “a”, “Return”, “alt+Tab”, “ctrl+s”, “Up”, “KP_0” (for the numpad 0 key).

§

Variant8

Fields

§call_id: Option<String>

Optional call identifier

§

Variant9

Fields

§call_id: Option<String>

Optional call identifier

§duration: f64
§

Variant10

Fields

§call_id: Option<String>

Optional call identifier

§message: Option<String>

Completion message

§

Variant11

Fields

§call_id: Option<String>

Optional call identifier

§message: Option<String>

Failure message

§

Variant12

Fields

§call_id: Option<String>

Optional call identifier

§

Variant13

Fields

§call_id: Option<String>

Optional call identifier

§key: String

Key to press

§

Variant14

Fields

§call_id: Option<String>

Optional call identifier

§key: String

Key to release

Trait Implementations§

Source§

impl Clone for ComputerUseActionDtoAction

Source§

fn clone(&self) -> ComputerUseActionDtoAction

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ComputerUseActionDtoAction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ComputerUseActionDtoAction

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<&ComputerUseActionDtoAction> for ComputerUseActionDtoAction

Source§

fn from(value: &ComputerUseActionDtoAction) -> Self

Converts to this type from the input type.
Source§

impl Serialize for ComputerUseActionDtoAction

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more