pub struct Click {
pub button: String,
pub _type: String,
pub x: i32,
pub y: i32,
}
Expand description
§on openapi.yaml
Click:
type: object
title: Click
description: |
A click action.
properties:
type:
type: string
enum:
- click
default: click
description: |
Specifies the event type. For a click action, this property is
always set to `click`.
x-stainless-const: true
button:
type: string
enum:
- left
- right
- wheel
- back
- forward
description: >
Indicates which mouse button was pressed during the click. One of
`left`, `right`, `wheel`, `back`, or `forward`.
x:
type: integer
description: |
The x-coordinate where the click occurred.
y:
type: integer
description: |
The y-coordinate where the click occurred.
required:
- type
- button
- x
- y
Fields§
Indicates which mouse button was pressed during the click. One of left
, right
, wheel
, back
, or forward
.
_type: String
Specifies the event type. For a click action, this property is always set to click
.
x: i32
The x-coordinate where the click occurred.
y: i32
The y-coordinate where the click occurred.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Click
impl<'de> Deserialize<'de> for Click
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Click
impl RefUnwindSafe for Click
impl Send for Click
impl Sync for Click
impl Unpin for Click
impl UnwindSafe for Click
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more