pub struct ExecutionConfig {
pub thread_id: String,
pub resume_from: Option<String>,
pub recursion_limit: usize,
pub metadata: HashMap<String, Value>,
}Expand description
Configuration passed to nodes during execution
Fields§
§thread_id: StringThread identifier for checkpointing
resume_from: Option<String>Resume from a specific checkpoint
recursion_limit: usizeRecursion limit for cycles
metadata: HashMap<String, Value>Additional configuration
Implementations§
Source§impl ExecutionConfig
impl ExecutionConfig
Sourcepub fn with_recursion_limit(self, limit: usize) -> Self
pub fn with_recursion_limit(self, limit: usize) -> Self
Set the recursion limit
Sourcepub fn with_resume_from(self, checkpoint_id: &str) -> Self
pub fn with_resume_from(self, checkpoint_id: &str) -> Self
Resume from a specific checkpoint
Sourcepub fn with_metadata(self, key: &str, value: Value) -> Self
pub fn with_metadata(self, key: &str, value: Value) -> Self
Add metadata
Trait Implementations§
Source§impl Clone for ExecutionConfig
impl Clone for ExecutionConfig
Source§fn clone(&self) -> ExecutionConfig
fn clone(&self) -> ExecutionConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExecutionConfig
impl RefUnwindSafe for ExecutionConfig
impl Send for ExecutionConfig
impl Sync for ExecutionConfig
impl Unpin for ExecutionConfig
impl UnwindSafe for ExecutionConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)