pub struct SplitTaskOptions<'a> {
pub source_id: &'a str,
pub number: usize,
pub status: TaskStatus,
pub title_prefix: Option<&'a str>,
pub distribute_plan: bool,
pub now_utc: &'a str,
pub id_prefix: &'a str,
pub id_width: usize,
pub max_depth: u8,
}Expand description
Options for splitting a task.
Fields§
§source_id: &'a strID of the task to split.
number: usizeNumber of child tasks to create.
status: TaskStatusStatus for child tasks.
title_prefix: Option<&'a str>Optional prefix to prepend to child task titles.
distribute_plan: boolDistribute plan items across children.
now_utc: &'a strCurrent timestamp (RFC3339) for created_at/updated_at.
id_prefix: &'a strPrefix for new task ID (e.g., “RQ”).
id_width: usizeWidth of the numeric portion of the ID.
max_depth: u8Max dependency depth for validation.
Implementations§
Source§impl<'a> SplitTaskOptions<'a>
impl<'a> SplitTaskOptions<'a>
Sourcepub fn new(
source_id: &'a str,
number: usize,
status: TaskStatus,
now_utc: &'a str,
id_prefix: &'a str,
id_width: usize,
) -> Self
pub fn new( source_id: &'a str, number: usize, status: TaskStatus, now_utc: &'a str, id_prefix: &'a str, id_width: usize, ) -> Self
Create new split options with required fields.
Sourcepub fn with_title_prefix(self, prefix: Option<&'a str>) -> Self
pub fn with_title_prefix(self, prefix: Option<&'a str>) -> Self
Set the title prefix.
Sourcepub fn with_distribute_plan(self, distribute: bool) -> Self
pub fn with_distribute_plan(self, distribute: bool) -> Self
Set distribute plan flag.
Sourcepub fn with_max_depth(self, depth: u8) -> Self
pub fn with_max_depth(self, depth: u8) -> Self
Set the max dependency depth.
Trait Implementations§
Source§impl<'a> Clone for SplitTaskOptions<'a>
impl<'a> Clone for SplitTaskOptions<'a>
Source§fn clone(&self) -> SplitTaskOptions<'a>
fn clone(&self) -> SplitTaskOptions<'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 moreAuto Trait Implementations§
impl<'a> Freeze for SplitTaskOptions<'a>
impl<'a> RefUnwindSafe for SplitTaskOptions<'a>
impl<'a> Send for SplitTaskOptions<'a>
impl<'a> Sync for SplitTaskOptions<'a>
impl<'a> Unpin for SplitTaskOptions<'a>
impl<'a> UnsafeUnpin for SplitTaskOptions<'a>
impl<'a> UnwindSafe for SplitTaskOptions<'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