pub struct TaskBuilder { /* private fields */ }Expand description
Builder for creating tasks with a fluent API
Implementations§
Source§impl TaskBuilder
impl TaskBuilder
pub fn new() -> Self
Sourcepub fn from_existing(task: &Task) -> Self
pub fn from_existing(task: &Task) -> Self
Creates a TaskBuilder from an existing task. This is used for retrying tasks.
pub fn repo_root(self, repo_root: PathBuf) -> Self
pub fn name(self, name: String) -> Self
pub fn task_type(self, task_type: String) -> Self
pub fn description(self, description: Option<String>) -> Self
Sourcepub fn instructions_file(self, path: Option<PathBuf>) -> Self
pub fn instructions_file(self, path: Option<PathBuf>) -> Self
Sets the path to a file containing instructions
pub fn edit(self, edit: bool) -> Self
pub fn agent(self, agent: Option<String>) -> Self
pub fn timeout(self, timeout: u32) -> Self
pub fn tech_stack(self, tech_stack: Option<String>) -> Self
pub fn project(self, project: Option<String>) -> Self
pub async fn build(self, ctx: &AppContext) -> Result<Task, Box<dyn Error>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskBuilder
impl RefUnwindSafe for TaskBuilder
impl Send for TaskBuilder
impl Sync for TaskBuilder
impl Unpin for TaskBuilder
impl UnwindSafe for TaskBuilder
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