Struct onetime_cli::Config
source · pub struct Config {
pub file: PathBuf,
pub suffix1: String,
pub suffix2: String,
pub buffer: u32,
pub rm: 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
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.