pub struct EncryptOpts<T, U> {Show 14 fields
pub files: Vec<PathBuf>,
pub recipients: Vec<Fingerprint>,
pub signer: Fingerprint,
pub cert_store: CertStore<'static>,
pub key_store: KeyStore,
pub password: U,
pub compression_algorithm: CompressionAlgorithm,
pub mode: Mode,
pub progress: Option<T>,
pub purpose: Option<Purpose>,
pub transfer_id: Option<u32>,
pub timestamp: DateTime<Utc>,
pub prefix: Option<String>,
pub extra_metadata: BTreeMap<String, String>,
}Expand description
Options required by the encrypt workflow.
Fields§
§files: Vec<PathBuf>Input files for encryption.
recipients: Vec<Fingerprint>Public OpenPGP keys of recipients.
signer: FingerprintPrivate OpenPGP key for signer (used for signing data).
cert_store: CertStore<'static>OpenPGP certificate store
key_store: KeyStoreOpenPGP private key store
password: UPassword for decrypting the signer’s key.
compression_algorithm: CompressionAlgorithmAlgorithm used for compressing data before encryption.
mode: ModeRun the workflow or only perform a check.
progress: Option<T>Encryption progress handler.
purpose: Option<Purpose>Purpose, see package::Purpose for more details.
transfer_id: Option<u32>Data transfer ID, see package::Metadata::transfer_id for more details.
timestamp: DateTime<Utc>Timestamp of the data package.
prefix: Option<String>Prefix for the data package name.
extra_metadata: BTreeMap<String, String>Extra metadata fields, see package::Metadata::extra for more details.
Trait Implementations§
Auto Trait Implementations§
impl<T, U> !Freeze for EncryptOpts<T, U>
impl<T, U> !RefUnwindSafe for EncryptOpts<T, U>
impl<T, U> Send for EncryptOpts<T, U>
impl<T, U> Sync for EncryptOpts<T, U>
impl<T, U> Unpin for EncryptOpts<T, U>
impl<T, U> !UnwindSafe for EncryptOpts<T, U>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.