pub struct Pgp {
pub command: String,
pub sign_key: Option<String>,
pub sign_by_default: bool,
pub encrypt_by_default: bool,
pub reply_sign: bool,
pub reply_encrypt: bool,
pub reply_sign_encrypted: bool,
}Expand description
PGP via gpg(1). Decrypt/verify happens automatically when a viewed message is PGP; signing and encrypting are chosen at the send prompt. Passphrases are gpg-agent’s business; rmut never sees them.
Fields§
§command: StringThe gpg executable (a name looked up in $PATH or a full path).
sign_key: Option<String>Signing key for –local-user; gpg’s default key when unset.
sign_by_default: boolPreselect signing / encrypting for new drafts (the compose menu’s security menu can still change it per message).
encrypt_by_default: bool§reply_sign: boolmutt’s $crypt_replysign: a reply to a signed message defaults to signed. $crypt_replyencrypt: a reply to an encrypted one defaults to encrypted (on in mutt, off here until asked). $crypt_replysignencrypted: a reply to signed-and-encrypted mail defaults to signed too. All off by default.
reply_encrypt: bool§reply_sign_encrypted: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for Pgp
impl<'de> Deserialize<'de> for Pgp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Pgp
impl RefUnwindSafe for Pgp
impl Send for Pgp
impl Sync for Pgp
impl Unpin for Pgp
impl UnsafeUnpin for Pgp
impl UnwindSafe for Pgp
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