pub struct ScheduleExecution {
pub id: Uuid,
pub schedule_id: ScheduleId,
pub execution_id: Uuid,
pub triggered_at: DateTime<Utc>,
pub success: bool,
pub error: Option<String>,
pub duration_ms: Option<u64>,
}Expand description
Schedule execution record
Fields§
§id: UuidUnique execution ID
schedule_id: ScheduleIdSchedule that triggered this execution
execution_id: UuidWorkflow execution ID
triggered_at: DateTime<Utc>When this execution was triggered
success: boolWhether the execution was successful
error: Option<String>Error message if execution failed
duration_ms: Option<u64>Execution duration in milliseconds
Implementations§
Source§impl ScheduleExecution
impl ScheduleExecution
Sourcepub fn new(schedule_id: ScheduleId, execution_id: Uuid) -> Self
pub fn new(schedule_id: ScheduleId, execution_id: Uuid) -> Self
Create a new schedule execution record
Trait Implementations§
Source§impl Clone for ScheduleExecution
impl Clone for ScheduleExecution
Source§fn clone(&self) -> ScheduleExecution
fn clone(&self) -> ScheduleExecution
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 ScheduleExecution
impl Debug for ScheduleExecution
Source§impl<'de> Deserialize<'de> for ScheduleExecution
impl<'de> Deserialize<'de> for ScheduleExecution
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 ScheduleExecution
impl RefUnwindSafe for ScheduleExecution
impl Send for ScheduleExecution
impl Sync for ScheduleExecution
impl Unpin for ScheduleExecution
impl UnwindSafe for ScheduleExecution
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