pub struct InstantiateOptions {
pub parent_task_id: Option<String>,
pub attach_dep_type: String,
pub title_prefix: Option<String>,
pub extra_tags: Vec<String>,
pub reset_status: bool,
pub initial_status: Option<String>,
}Expand description
Options for controlling template instantiation.
Fields§
§parent_task_id: Option<String>Parent task ID to attach the template’s entry points to. A “contains” dependency will be created from parent to each entry point.
attach_dep_type: StringDependency type to use when attaching to parent (default: “contains”).
title_prefix: Option<String>Optional prefix to add to task titles for disambiguation.
Additional tags to add to all instantiated tasks.
reset_status: boolWhether to reset all task statuses to the initial state. Default: true (templates are instantiated as fresh work).
initial_status: Option<String>Override the initial status for instantiated tasks. If None, uses the config’s initial state.
Implementations§
Source§impl InstantiateOptions
impl InstantiateOptions
Sourcepub fn with_parent(self, parent_id: &str) -> Self
pub fn with_parent(self, parent_id: &str) -> Self
Set the parent task ID (builder pattern).
Sourcepub fn with_title_prefix(self, prefix: &str) -> Self
pub fn with_title_prefix(self, prefix: &str) -> Self
Set a title prefix (builder pattern).
Add extra tags to all instantiated tasks (builder pattern).
Trait Implementations§
Source§impl Clone for InstantiateOptions
impl Clone for InstantiateOptions
Source§fn clone(&self) -> InstantiateOptions
fn clone(&self) -> InstantiateOptions
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 Debug for InstantiateOptions
impl Debug for InstantiateOptions
Source§impl Default for InstantiateOptions
impl Default for InstantiateOptions
Source§fn default() -> InstantiateOptions
fn default() -> InstantiateOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InstantiateOptions
impl RefUnwindSafe for InstantiateOptions
impl Send for InstantiateOptions
impl Sync for InstantiateOptions
impl Unpin for InstantiateOptions
impl UnwindSafe for InstantiateOptions
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> 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