pub struct ProtectOptions {
pub preset: FusedPreset,
pub compression_algorithm: CompressionAlgorithm,
pub compression_level: u32,
pub compression_min_size_threshold: usize,
pub encryption_algorithm: Option<Algorithm>,
pub shell_chunk_size: Option<usize>,
pub shell_nonce: Option<[u8; 12]>,
}Expand description
Protect/open pipeline options.
Fields§
§preset: FusedPresetFused preset for the outer shell.
compression_algorithm: CompressionAlgorithmCompression algorithm preference.
compression_level: u32Compression level.
compression_min_size_threshold: usizeMinimum size before compression is attempted.
encryption_algorithm: Option<Algorithm>Preferred encryption algorithm.
shell_chunk_size: Option<usize>Optional override for shell chunk size.
shell_nonce: Option<[u8; 12]>Optional deterministic shell nonce.
Trait Implementations§
Source§impl Clone for ProtectOptions
impl Clone for ProtectOptions
Source§fn clone(&self) -> ProtectOptions
fn clone(&self) -> ProtectOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProtectOptions
impl Debug for ProtectOptions
Source§impl Default for ProtectOptions
Available on crate feature compression only.
impl Default for ProtectOptions
Available on crate feature
compression only.Source§impl<'de> Deserialize<'de> for ProtectOptions
impl<'de> Deserialize<'de> for ProtectOptions
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 ProtectOptions
impl RefUnwindSafe for ProtectOptions
impl Send for ProtectOptions
impl Sync for ProtectOptions
impl Unpin for ProtectOptions
impl UnsafeUnpin for ProtectOptions
impl UnwindSafe for ProtectOptions
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