pub struct EncryptionCliArgs {
pub input_files: Vec<String>,
pub profile: CliProfile,
pub list_profiles: bool,
pub output_dir: Option<PathBuf>,
pub password_file: Option<PathBuf>,
pub quiet: bool,
pub delete: bool,
}Expand description
Encryption CLI arguments structure
Fields§
§input_files: Vec<String>Input files or directories to encrypt
profile: CliProfileSecurity profile controlling the key derivation cost
list_profiles: boolPrint the available security profiles and their parameters, then exit
output_dir: Option<PathBuf>Write encrypted files to this directory (created if missing; defaults to the current directory)
password_file: Option<PathBuf>Read the password from this file instead of prompting (one trailing newline is ignored)
quiet: boolSuppress progress and per-file success output (errors are still shown)
delete: boolDelete originals after successful encryption. Best-effort removal: on SSDs and journaling filesystems the data may remain recoverable until overwritten.
Trait Implementations§
Source§impl Args for EncryptionCliArgs
impl Args for EncryptionCliArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for EncryptionCliArgs
impl Clone for EncryptionCliArgs
Source§fn clone(&self) -> EncryptionCliArgs
fn clone(&self) -> EncryptionCliArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CommandFactory for EncryptionCliArgs
impl CommandFactory for EncryptionCliArgs
Source§impl Debug for EncryptionCliArgs
impl Debug for EncryptionCliArgs
Source§impl Default for EncryptionCliArgs
impl Default for EncryptionCliArgs
Source§fn default() -> EncryptionCliArgs
fn default() -> EncryptionCliArgs
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for EncryptionCliArgs
impl FromArgMatches for EncryptionCliArgs
Source§fn from_arg_matches(
__clap_arg_matches: &ArgMatches,
) -> Result<EncryptionCliArgs, Error>
fn from_arg_matches( __clap_arg_matches: &ArgMatches, ) -> Result<EncryptionCliArgs, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<EncryptionCliArgs, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<EncryptionCliArgs, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for EncryptionCliArgs
impl Parser for EncryptionCliArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for EncryptionCliArgs
impl RefUnwindSafe for EncryptionCliArgs
impl Send for EncryptionCliArgs
impl Sync for EncryptionCliArgs
impl Unpin for EncryptionCliArgs
impl UnsafeUnpin for EncryptionCliArgs
impl UnwindSafe for EncryptionCliArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more