pub struct DecryptionCliArgs {
pub input_files: Vec<String>,
pub output_dir: Option<PathBuf>,
pub password_file: Option<PathBuf>,
pub force: bool,
pub quiet: bool,
}Expand description
Decryption CLI arguments structure
Fields§
§input_files: Vec<String>Input files to decrypt
output_dir: Option<PathBuf>Write decrypted 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)
force: boolOverwrite existing output files instead of failing
quiet: boolSuppress progress and per-file success output (errors are still shown)
Trait Implementations§
Source§impl Args for DecryptionCliArgs
impl Args for DecryptionCliArgs
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 DecryptionCliArgs
impl Clone for DecryptionCliArgs
Source§fn clone(&self) -> DecryptionCliArgs
fn clone(&self) -> DecryptionCliArgs
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 DecryptionCliArgs
impl CommandFactory for DecryptionCliArgs
Source§impl Debug for DecryptionCliArgs
impl Debug for DecryptionCliArgs
Source§impl Default for DecryptionCliArgs
impl Default for DecryptionCliArgs
Source§fn default() -> DecryptionCliArgs
fn default() -> DecryptionCliArgs
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for DecryptionCliArgs
impl FromArgMatches for DecryptionCliArgs
Source§fn from_arg_matches(
__clap_arg_matches: &ArgMatches,
) -> Result<DecryptionCliArgs, Error>
fn from_arg_matches( __clap_arg_matches: &ArgMatches, ) -> Result<DecryptionCliArgs, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<DecryptionCliArgs, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<DecryptionCliArgs, 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 DecryptionCliArgs
impl Parser for DecryptionCliArgs
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 DecryptionCliArgs
impl RefUnwindSafe for DecryptionCliArgs
impl Send for DecryptionCliArgs
impl Sync for DecryptionCliArgs
impl Unpin for DecryptionCliArgs
impl UnsafeUnpin for DecryptionCliArgs
impl UnwindSafe for DecryptionCliArgs
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