pub enum ActivitySpec {
Atomic {
activity_type: String,
retry_policy: Option<RetryPolicy>,
},
Composite {
sub_activities: Vec<ActivitySpec>,
},
ClaudeDecision {
context_template: String,
allowed_actions: Vec<String>,
},
}Expand description
Specification for an activity to execute
Variants§
Atomic
An atomic activity that executes as a single unit
Fields
§
retry_policy: Option<RetryPolicy>Retry configuration
Composite
A composite activity made up of sub-activities
Fields
§
sub_activities: Vec<ActivitySpec>Sub-activities to execute
ClaudeDecision
A decision point where Claude makes a runtime decision
Trait Implementations§
Source§impl Clone for ActivitySpec
impl Clone for ActivitySpec
Source§fn clone(&self) -> ActivitySpec
fn clone(&self) -> ActivitySpec
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 ActivitySpec
impl Debug for ActivitySpec
Source§impl<'de> Deserialize<'de> for ActivitySpec
impl<'de> Deserialize<'de> for ActivitySpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ActivitySpec
impl RefUnwindSafe for ActivitySpec
impl Send for ActivitySpec
impl Sync for ActivitySpec
impl Unpin for ActivitySpec
impl UnwindSafe for ActivitySpec
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