pub struct Task {
pub plugin_name: String,
pub task_key: String,
pub name: String,
pub description: String,
pub item_sources: Option<HashMap<String, ItemSource>>,
pub mode: Mode,
pub preview_polling_interval: usize,
pub item_polling_interval: usize,
pub execution_confirmation_message: Option<String>,
pub suppress_success_notification: bool,
}Fields§
§plugin_name: String§task_key: String§name: String§description: String§item_sources: Option<HashMap<String, ItemSource>>§mode: Mode§preview_polling_interval: usize§item_polling_interval: usize§execution_confirmation_message: Option<String>§suppress_success_notification: boolImplementations§
Source§impl Task
impl Task
pub const LUA_FN_NAME_PRE_RUN: &str = "pre_run"
pub const LUA_FN_NAME_POST_RUN: &str = "post_run"
pub const LUA_FN_NAME_PREVIEW: &str = "preview"
pub const LUA_FN_NAME_EXECUTE: &str = "execute"
pub const LUA_PROPERTY_ITEM_SOURCES: &str = "item_sources"
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnsafeUnpin for Task
impl UnwindSafe for Task
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,
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