pub struct TaskDefinitionBuilder { /* private fields */ }Expand description
Builder for constructing task definitions.
Implementations§
Source§impl TaskDefinitionBuilder
impl TaskDefinitionBuilder
Sourcepub fn new(
name: impl Into<String>,
prompt_file: impl Into<String>,
completion_promise: impl Into<String>,
) -> Self
pub fn new( name: impl Into<String>, prompt_file: impl Into<String>, completion_promise: impl Into<String>, ) -> Self
Creates a new builder with required fields.
Sourcepub fn verification_command(self, command: impl Into<String>) -> Self
pub fn verification_command(self, command: impl Into<String>) -> Self
Sets the verification command.
Sourcepub fn verification_exit_code(self, code: i32) -> Self
pub fn verification_exit_code(self, code: i32) -> Self
Sets the verification success exit code.
Sourcepub fn verification(self, verification: Verification) -> Self
pub fn verification(self, verification: Verification) -> Self
Sets the full verification configuration.
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Sets the task description.
Sourcepub fn complexity(self, complexity: impl Into<String>) -> Self
pub fn complexity(self, complexity: impl Into<String>) -> Self
Sets the complexity level.
Sourcepub fn max_iterations(self, max: u32) -> Self
pub fn max_iterations(self, max: u32) -> Self
Sets the maximum iterations.
Sourcepub fn expected_iterations(self, expected: u32) -> Self
pub fn expected_iterations(self, expected: u32) -> Self
Sets the expected iterations for baseline comparison.
Sourcepub fn timeout_seconds(self, seconds: u64) -> Self
pub fn timeout_seconds(self, seconds: u64) -> Self
Sets the timeout in seconds.
Sourcepub fn setup_script(self, script: impl Into<String>) -> Self
pub fn setup_script(self, script: impl Into<String>) -> Self
Sets the setup script.
Sourcepub fn setup_files(self, files: Vec<String>) -> Self
pub fn setup_files(self, files: Vec<String>) -> Self
Sets the setup files.
Adds tags.
Sourcepub fn build(self) -> TaskDefinition
pub fn build(self) -> TaskDefinition
Builds the task definition.
Auto Trait Implementations§
impl Freeze for TaskDefinitionBuilder
impl RefUnwindSafe for TaskDefinitionBuilder
impl Send for TaskDefinitionBuilder
impl Sync for TaskDefinitionBuilder
impl Unpin for TaskDefinitionBuilder
impl UnsafeUnpin for TaskDefinitionBuilder
impl UnwindSafe for TaskDefinitionBuilder
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