pub struct AutomationRule<'a> {
pub text: Option<Cow<'a, str>>,
pub regexp: Option<Cow<'a, str>>,
pub x: Option<u32>,
pub y: Option<u32>,
pub conditions: &'a [AutomationCondition<'a>],
pub actions: &'a [AutomationAction<'a>],
}Expand description
Speculos automation rule.
Fields§
§text: Option<Cow<'a, str>>Exact text match.
regexp: Option<Cow<'a, str>>Regex text match.
x: Option<u32>X coordinate match.
y: Option<u32>Y coordinate match.
conditions: &'a [AutomationCondition<'a>]Conditions for this rule to be activated.
actions: &'a [AutomationAction<'a>]Actions to perform when this rule is applied.
Trait Implementations§
Source§impl<'a> Clone for AutomationRule<'a>
impl<'a> Clone for AutomationRule<'a>
Source§fn clone(&self) -> AutomationRule<'a>
fn clone(&self) -> AutomationRule<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for AutomationRule<'a>
impl<'a> Debug for AutomationRule<'a>
Source§impl<'a> PartialEq for AutomationRule<'a>
impl<'a> PartialEq for AutomationRule<'a>
Source§impl<'a> Serialize for AutomationRule<'a>
impl<'a> Serialize for AutomationRule<'a>
impl<'a> Eq for AutomationRule<'a>
impl<'a> StructuralPartialEq for AutomationRule<'a>
Auto Trait Implementations§
impl<'a> Freeze for AutomationRule<'a>
impl<'a> RefUnwindSafe for AutomationRule<'a>
impl<'a> Send for AutomationRule<'a>
impl<'a> Sync for AutomationRule<'a>
impl<'a> Unpin for AutomationRule<'a>
impl<'a> UnwindSafe for AutomationRule<'a>
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