Method
write
(
&mut self,
kind: AutomationRunArtifactKind,
payload: &Value,
summary: Option<String>,
)
Source from the content-addressed store, hash-verified
| 39 | } |
| 40 | |
| 41 | async fn write( |
| 42 | &mut self, |
| 43 | kind: AutomationRunArtifactKind, |
| 44 | payload: &Value, |
| 45 | summary: Option<String>, |
| 46 | ) -> Result<Value> { |
| 47 | let artifact = write_run_artifact( |
| 48 | self.dashboard_root, |
| 49 | self.run_id, |
| 50 | kind, |
| 51 | payload, |
| 52 | summary, |
| 53 | self.created_at, |
| 54 | ) |
| 55 | .await?; |
| 56 | let artifact_ref = artifact_ref(&artifact); |
| 57 | self.artifacts.push(artifact); |
| 58 | Ok(artifact_ref) |
| 59 | } |
| 60 | |
| 61 | fn finish(self) -> Vec<AutomationRunArtifact> { |
| 62 | self.artifacts |