workyard_application/contracts/progress.rs
1use serde::Serialize;
2
3/// Participant operation event delivered to observing views.
4#[derive(Serialize)]
5pub struct Progress {
6 /// Removal facts to present before proceeding.
7 #[serde(skip_serializing_if = "Option::is_none")]
8 pub disclosure: Option<crate::contracts::removal::Disclosure>,
9 /// Action producing the event.
10 pub action: &'static str,
11 /// Task selected for this operation.
12 pub task: String,
13 /// Participant to which this observation or change applies.
14 pub participant: String,
15 /// Step reached by this participant.
16 pub phase: String,
17}