pub struct Args {
pub pfx: String,
pub password: Option<String>,
pub combined: bool,
pub key_file: Option<String>,
pub cert_file: Option<String>,
pub combined_file: Option<String>,
pub chain: bool,
pub verbose: bool,
/* private fields */
}Fields§
§pfx: StringPath to the PFX/P12 file
password: Option<String>Password for the PFX/P12 file
combined: boolGenerate a combined PEM file with both certificate and private key
key_file: Option<String>Custom filename for the private key (defaults to private_key.pem)
cert_file: Option<String>Custom filename for the certificate (defaults to certificate.pem)
combined_file: Option<String>Custom filename for the combined file (defaults to certificate_with_key.pem)
chain: boolExtract all certificates in the chain (not just the main certificate)
verbose: boolVerbose output
Implementations§
Source§impl Args
impl Args
Sourcepub fn output_dir(&self) -> &str
pub fn output_dir(&self) -> &str
Get the output directory, defaulting to current directory
Sourcepub fn key_filename(&self) -> &str
pub fn key_filename(&self) -> &str
Get the private key filename, with default
Sourcepub fn cert_filename(&self) -> &str
pub fn cert_filename(&self) -> &str
Get the certificate filename, with default
Sourcepub fn combined_filename(&self) -> &str
pub fn combined_filename(&self) -> &str
Get the combined file filename, with default
Trait Implementations§
Source§impl Args for Args
impl Args for Args
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 CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, 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 Args
impl Parser for Args
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 Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
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