| 151 | /// Supported archive formats. |
| 152 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] |
| 153 | pub enum ArchiveFormat { |
| 154 | /// Gzip-compressed tarball (.tar.gz) |
| 155 | #[default] |
| 156 | TarGz, |
| 157 | |
| 158 | /// Uncompressed tarball (.tar) |
| 159 | Tar, |
| 160 | |
| 161 | /// Plain directory copy |
| 162 | Directory, |
| 163 | |
| 164 | /// ZIP archive (.zip) |
| 165 | Zip, |
| 166 | } |
| 167 | |
| 168 | impl ArchiveFormat { |
| 169 | /// Get the file extension for this format. |
nothing calls this directly
no outgoing calls
no test coverage detected