MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / ArchiveOutcome

Class ArchiveOutcome

atomic-repository/src/archive.rs:557–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555/// Result of an archive operation.
556#[derive(Debug, Clone)]
557pub 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
583impl ArchiveOutcome {
584 /// Create a new outcome.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected