(model: Artifact)
| 4 | |
| 5 | impl From<Artifact> for control_panel_api::ArtifactDTO { |
| 6 | fn from(model: Artifact) -> Self { |
| 7 | control_panel_api::ArtifactDTO { |
| 8 | id: Uuid::from_bytes(*model.id()).to_string(), |
| 9 | size: model.artifact().len() as u64, |
| 10 | hash: hex::encode(model.hash()), |
| 11 | artifact: model.artifact().to_vec(), |
| 12 | created_at: timestamp_to_rfc3339(&model.created_at()), |
| 13 | } |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | #[cfg(test)] |
nothing calls this directly
no test coverage detected