pub struct Config {
pub file: PathBuf,
pub suffix1: String,
pub suffix2: String,
pub buffer: u32,
pub rm: bool,
pub quiet: bool,
}
Expand description
Configuration passed to encrypt_file
or decrypt_file
Fields§
§file: PathBuf
File to be encrypted
suffix1: String
Suffix for the name of the first input/output file
suffix2: String
Suffix for the name of the second input/output file
buffer: u32
Buffer size in bytes
rm: bool
Delete input file after encryption
quiet: bool
Don’t print anything to stdout
Implementations§
Source§impl Config
impl Config
Sourcepub fn new(file: &str) -> Self
pub fn new(file: &str) -> Self
Constructs a new Config
with the given file(-path).
Other fields are filled with default values.
Sourcepub fn new_with_suffixes(file: &str, suffix1: &str, suffix2: &str) -> Self
pub fn new_with_suffixes(file: &str, suffix1: &str, suffix2: &str) -> Self
Constructs a new Config
with the given file(-path)
and suffixes. Other fields are filled with
default values.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more