pub struct AutomationSpec {
pub prompt: String,
pub start_at: Option<SystemTime>,
pub every: Duration,
pub stop_at: Option<SystemTime>,
pub max_runs: Option<u32>,
}Fields§
§prompt: StringPrompt reused for every scheduled turn.
start_at: Option<SystemTime>First eligible run time. None starts immediately.
every: DurationFixed interval between due times. Must be greater than zero.
stop_at: Option<SystemTime>Exclusive upper bound for starting new runs.
max_runs: Option<u32>Optional hard cap on completed runs. Some(0) stops immediately.
Trait Implementations§
Source§impl Clone for AutomationSpec
impl Clone for AutomationSpec
Source§fn clone(&self) -> AutomationSpec
fn clone(&self) -> AutomationSpec
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 AutomationSpec
impl Debug for AutomationSpec
Source§impl PartialEq for AutomationSpec
impl PartialEq for AutomationSpec
impl Eq for AutomationSpec
impl StructuralPartialEq for AutomationSpec
Auto Trait Implementations§
impl Freeze for AutomationSpec
impl RefUnwindSafe for AutomationSpec
impl Send for AutomationSpec
impl Sync for AutomationSpec
impl Unpin for AutomationSpec
impl UnsafeUnpin for AutomationSpec
impl UnwindSafe for AutomationSpec
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