pub struct Schedule {Show 14 fields
pub id: TemporalId,
pub label: String,
pub start_at: DateTime<Utc>,
pub duration_secs: i64,
pub recurrence: Option<Recurrence>,
pub priority: Priority,
pub flexible: bool,
pub buffer_before_secs: Option<i64>,
pub buffer_after_secs: Option<i64>,
pub dependencies: Vec<TemporalId>,
pub blocked_by: Vec<TemporalId>,
pub status: ScheduleStatus,
pub created_at: DateTime<Utc>,
pub tags: Vec<String>,
}Expand description
A scheduled event or task.
Fields§
§id: TemporalIdUnique identifier.
label: StringWhat is scheduled.
start_at: DateTime<Utc>When it starts.
duration_secs: i64Expected duration in seconds.
recurrence: Option<Recurrence>Recurrence pattern (if any).
priority: PriorityPriority level.
flexible: boolCan this be moved?
buffer_before_secs: Option<i64>Buffer time before (seconds).
buffer_after_secs: Option<i64>Buffer time after (seconds).
dependencies: Vec<TemporalId>Dependencies (must complete before this).
blocked_by: Vec<TemporalId>Blocked by (cannot start until these complete).
status: ScheduleStatusStatus.
created_at: DateTime<Utc>When created.
Tags.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Schedule
impl<'de> Deserialize<'de> for Schedule
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 Schedule
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnsafeUnpin for Schedule
impl UnwindSafe for Schedule
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