| 555 | /// Result of an archive operation. |
| 556 | #[derive(Debug, Clone)] |
| 557 | pub struct ArchiveOutcome { |
| 558 | /// Path to the created archive. |
| 559 | pub destination: PathBuf, |
| 560 | |
| 561 | /// Format of the archive. |
| 562 | pub format: ArchiveFormat, |
| 563 | |
| 564 | /// State that was archived. |
| 565 | pub state: Merkle, |
| 566 | |
| 567 | /// Manifest of archived contents. |
| 568 | pub manifest: ArchiveManifest, |
| 569 | |
| 570 | /// Size of the archive file (or total size for directory). |
| 571 | pub archive_size: u64, |
| 572 | |
| 573 | /// Compression ratio (if applicable). |
| 574 | pub compression_ratio: Option<f64>, |
| 575 | |
| 576 | /// Time taken to create the archive. |
| 577 | pub duration_ms: u64, |
| 578 | |
| 579 | /// Any warnings generated. |
| 580 | pub warnings: Vec<String>, |
| 581 | } |
| 582 | |
| 583 | impl ArchiveOutcome { |
| 584 | /// Create a new outcome. |
nothing calls this directly
no outgoing calls
no test coverage detected