From eca9e7a425b4a65664c6192a0434363cce42bf24 Mon Sep 17 00:00:00 2001 From: soyouzpanda Date: Sat, 7 Dec 2024 15:32:48 +0100 Subject: [PATCH] Added getters to CopyOptions --- src/nix/host/mod.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/nix/host/mod.rs b/src/nix/host/mod.rs index 3cc35f6..c7cf046 100644 --- a/src/nix/host/mod.rs +++ b/src/nix/host/mod.rs @@ -65,6 +65,18 @@ impl CopyOptions { self.gzip = val; self } + + pub fn get_include_outputs(&self) -> bool { + self.include_outputs + } + + pub fn get_use_substitutes(&self) -> bool { + self.use_substitutes + } + + pub fn get_gzip(&self) -> bool { + self.gzip + } } impl Default for RebootOptions {