pub struct Signify {
pub mode: Option<Mode>,
pub comment: Option<String>,
pub embed: bool,
pub msg_file: Option<PathBuf>,
pub nopass: bool,
pub pubkey: Option<PathBuf>,
pub quiet: bool,
pub seckey: Option<PathBuf>,
pub sig_file: Option<PathBuf>,
pub gzip: bool,
pub key_id: Option<i32>,
pub args: Vec<PathBuf>,
}Expand description
Runtime configuration.
This struct holds all configuration options parsed from command-line arguments or set programmatically.
§Examples
use libsignify_rs::signify::{Signify, Mode};
use std::path::PathBuf;
let mut signify = Signify::default();
signify.mode = Some(Mode::Sign);
signify.seckey = Some(PathBuf::from("key.sec"));
signify.embed = true;
assert_eq!(signify.mode, Some(Mode::Sign));
assert!(signify.embed);Fields§
§mode: Option<Mode>Operation mode.
comment: Option<String>Comment for key generation.
embed: boolEmbedding mode flag.
msg_file: Option<PathBuf>Message file path.
nopass: boolNo password flag.
pubkey: Option<PathBuf>Public key path.
quiet: boolQuiet mode flag.
seckey: Option<PathBuf>Secret key path.
sig_file: Option<PathBuf>Signature file path.
gzip: boolGzip mode flag.
key_id: Option<i32>Key ID for keyring lookup.
args: Vec<PathBuf>Positional arguments.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signify
impl RefUnwindSafe for Signify
impl Send for Signify
impl Sync for Signify
impl Unpin for Signify
impl UnwindSafe for Signify
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