Struct DiffTaskBuilder

Source
pub struct DiffTaskBuilder { /* private fields */ }
Expand description

Builder for DiffTask.

Implementations§

Source§

impl DiffTaskBuilder

Source

pub fn recognition(&mut self, value: Option<Recognition>) -> &mut Self

Source

pub fn action(&mut self, value: Option<Action>) -> &mut Self

Source

pub fn next(&mut self, value: Option<Vec<String>>) -> &mut Self

Source

pub fn is_sub(&mut self, value: Option<bool>) -> &mut Self

Source

pub fn inverse(&mut self, value: Option<bool>) -> &mut Self

Source

pub fn enabled(&mut self, value: Option<bool>) -> &mut Self

Source

pub fn timeout(&mut self, value: Option<u32>) -> &mut Self

Source

pub fn timeout_next(&mut self, value: Option<Vec<String>>) -> &mut Self

Source

pub fn times_limit(&mut self, value: Option<u32>) -> &mut Self

Source

pub fn runout_next(&mut self, value: Option<Vec<String>>) -> &mut Self

Source

pub fn pre_delay(&mut self, value: Option<u32>) -> &mut Self

Source

pub fn post_delay(&mut self, value: Option<u32>) -> &mut Self

Source

pub fn pre_wait_freezes(&mut self, value: Option<WaitFreezes>) -> &mut Self

Source

pub fn post_wait_freezes(&mut self, value: Option<WaitFreezes>) -> &mut Self

Source

pub fn focus(&mut self, value: Option<bool>) -> &mut Self

Source

pub fn roi(&mut self, value: Option<List<[u32; 4]>>) -> &mut Self

Source

pub fn template(&mut self, value: Option<List<String>>) -> &mut Self

Source

pub fn threshold(&mut self, value: Option<List<f32>>) -> &mut Self

Source

pub fn method(&mut self, value: Option<u32>) -> &mut Self

Source

pub fn green_mask(&mut self, value: Option<bool>) -> &mut Self

Source

pub fn order_by(&mut self, value: Option<Order>) -> &mut Self

Source

pub fn index(&mut self, value: Option<u32>) -> &mut Self

Source

pub fn count(&mut self, value: Option<u32>) -> &mut Self

Source

pub fn detector(&mut self, value: Option<Detector>) -> &mut Self

Source

pub fn ratio(&mut self, value: Option<f32>) -> &mut Self

Source

pub fn lower(&mut self, value: Option<List<Vec<u32>>>) -> &mut Self

Source

pub fn upper(&mut self, value: Option<List<Vec<u32>>>) -> &mut Self

Source

pub fn connected(&mut self, value: Option<bool>) -> &mut Self

Source

pub fn expected( &mut self, value: Option<List<Variant<String, u32>>>, ) -> &mut Self

Source

pub fn input_text(&mut self, value: Option<String>) -> &mut Self

Source

pub fn only_rec(&mut self, value: Option<bool>) -> &mut Self

Source

pub fn model(&mut self, value: Option<String>) -> &mut Self

Source

pub fn cls_size(&mut self, value: Option<u32>) -> &mut Self

Source

pub fn labels(&mut self, value: Option<Vec<String>>) -> &mut Self

Source

pub fn custom_recognition(&mut self, value: Option<String>) -> &mut Self

Source

pub fn custom_recognition_param(&mut self, value: Option<Value>) -> &mut Self

Source

pub fn target(&mut self, value: Option<Target>) -> &mut Self

Source

pub fn target_offset(&mut self, value: Option<[i32; 4]>) -> &mut Self

Source

pub fn begin(&mut self, value: Option<Target>) -> &mut Self

Source

pub fn begin_offset(&mut self, value: Option<[i32; 4]>) -> &mut Self

Source

pub fn end(&mut self, value: Option<Target>) -> &mut Self

Source

pub fn end_offset(&mut self, value: Option<[i32; 4]>) -> &mut Self

Source

pub fn duration(&mut self, value: Option<u32>) -> &mut Self

Source

pub fn key(&mut self, value: Option<List<u32>>) -> &mut Self

Source

pub fn package(&mut self, value: Option<String>) -> &mut Self

Source

pub fn custom_action(&mut self, value: Option<String>) -> &mut Self

Source

pub fn custom_action_param(&mut self, value: Option<Value>) -> &mut Self

Source

pub fn build(&self) -> Result<DiffTask, DiffTaskBuilderError>

Builds a new DiffTask.

§Errors

If a required field has not been initialized.

Trait Implementations§

Source§

impl Clone for DiffTaskBuilder

Source§

fn clone(&self) -> DiffTaskBuilder

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Default for DiffTaskBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. 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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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.