pub struct ComputerToolArgs {Show 22 fields
pub action: String,
pub x: Option<i32>,
pub y: Option<i32>,
pub dx: Option<i32>,
pub dy: Option<i32>,
pub end_x: Option<i32>,
pub end_y: Option<i32>,
pub text: Option<String>,
pub key: Option<String>,
pub keys: Option<Vec<String>>,
pub button: String,
pub amount: Option<i32>,
pub duration: f64,
pub interval: f64,
pub region: Option<Vec<i32>>,
pub clear: bool,
pub title: Option<String>,
pub name: Option<String>,
pub width: Option<i32>,
pub height: Option<i32>,
pub value: Option<f64>,
pub actions: Option<Vec<Value>>,
}Expand description
Arguments for UI tool
Fields§
§action: String§x: Option<i32>§y: Option<i32>§dx: Option<i32>§dy: Option<i32>§end_x: Option<i32>§end_y: Option<i32>§text: Option<String>§key: Option<String>§keys: Option<Vec<String>>§amount: Option<i32>§duration: f64§interval: f64§region: Option<Vec<i32>>§clear: bool§title: Option<String>§name: Option<String>§width: Option<i32>§height: Option<i32>§value: Option<f64>§actions: Option<Vec<Value>>Trait Implementations§
Source§impl Clone for ComputerToolArgs
impl Clone for ComputerToolArgs
Source§fn clone(&self) -> ComputerToolArgs
fn clone(&self) -> ComputerToolArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComputerToolArgs
impl Debug for ComputerToolArgs
Source§impl Default for ComputerToolArgs
impl Default for ComputerToolArgs
Source§fn default() -> ComputerToolArgs
fn default() -> ComputerToolArgs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ComputerToolArgs
impl<'de> Deserialize<'de> for ComputerToolArgs
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 ComputerToolArgs
impl RefUnwindSafe for ComputerToolArgs
impl Send for ComputerToolArgs
impl Sync for ComputerToolArgs
impl Unpin for ComputerToolArgs
impl UnsafeUnpin for ComputerToolArgs
impl UnwindSafe for ComputerToolArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more