pub struct EncryptOption {
pub file: Option<File>,
pub file_path: Option<String>,
pub recipients: Option<Vec<String>>,
pub sign: bool,
pub sign_key: Option<String>,
pub symmetric: bool,
pub symmetric_algo: Option<String>,
pub always_trust: bool,
pub passphrase: Option<String>,
pub output: Option<String>,
pub extra_args: Option<Vec<String>>,
}
Fields§
§file: Option<File>
§file_path: Option<String>
§recipients: Option<Vec<String>>
§sign: bool
§sign_key: Option<String>
§symmetric: bool
§symmetric_algo: Option<String>
§always_trust: bool
§passphrase: Option<String>
§output: Option<String>
§extra_args: Option<Vec<String>>
Implementations§
Source§impl EncryptOption
impl EncryptOption
pub fn default( file: Option<File>, file_path: Option<String>, recipients: Vec<String>, output: Option<String>, ) -> EncryptOption
pub fn with_symmetric( file: Option<File>, file_path: Option<String>, symmetric_algo: Option<String>, passphrase: String, output: Option<String>, ) -> EncryptOption
pub fn with_key_and_symmetric( file: Option<File>, file_path: Option<String>, recipients: Option<Vec<String>>, symmetric_algo: Option<String>, passphrase: String, output: Option<String>, ) -> EncryptOption
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EncryptOption
impl RefUnwindSafe for EncryptOption
impl Send for EncryptOption
impl Sync for EncryptOption
impl Unpin for EncryptOption
impl UnwindSafe for EncryptOption
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