| 229 | /// ``` |
| 230 | #[derive(Debug, Clone)] |
| 231 | pub struct ArchiveOptions { |
| 232 | /// Archive format. |
| 233 | pub format: ArchiveFormat, |
| 234 | |
| 235 | /// State to archive (None = current state). |
| 236 | pub state: Option<Merkle>, |
| 237 | |
| 238 | /// View to use (None = current view). |
| 239 | pub view: Option<String>, |
| 240 | |
| 241 | /// Prefix to add to all paths in the archive. |
| 242 | pub prefix: Option<String>, |
| 243 | |
| 244 | /// Only include paths matching these patterns. |
| 245 | pub include: Vec<String>, |
| 246 | |
| 247 | /// Exclude paths matching these patterns. |
| 248 | pub exclude: Vec<String>, |
| 249 | |
| 250 | /// Whether to overwrite existing destination. |
| 251 | pub overwrite: bool, |
| 252 | |
| 253 | /// Whether to include empty directories. |
| 254 | pub include_empty_dirs: bool, |
| 255 | |
| 256 | /// Maximum number of files to include. |
| 257 | pub max_files: Option<usize>, |
| 258 | |
| 259 | /// Maximum total size in bytes. |
| 260 | pub max_size: Option<u64>, |
| 261 | |
| 262 | /// Compression level (0-9, where applicable). |
| 263 | pub compression_level: u32, |
| 264 | |
| 265 | /// Whether to preserve timestamps. |
| 266 | pub preserve_timestamps: bool, |
| 267 | |
| 268 | /// Whether to preserve permissions. |
| 269 | pub preserve_permissions: bool, |
| 270 | |
| 271 | /// Default file permissions (Unix mode). |
| 272 | pub default_file_mode: u32, |
| 273 | |
| 274 | /// Default directory permissions (Unix mode). |
| 275 | pub default_dir_mode: u32, |
| 276 | } |
| 277 | |
| 278 | impl Default for ArchiveOptions { |
| 279 | fn default() -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected