pub struct OpenOptions {
pub max_entries: usize,
pub max_file_bytes: u64,
pub max_total_bytes: u64,
pub max_compression_ratio: u64,
pub trusted_keys: Vec<String>,
pub require_signature: bool,
}Expand description
Options for Bundle::open.
Fields§
§max_entries: usizeMaximum archive entries.
max_file_bytes: u64Maximum size of one file.
max_total_bytes: u64Maximum total uncompressed size.
max_compression_ratio: u64Maximum per-file compression ratio (zip-bomb guard).
trusted_keys: Vec<String>Hex Ed25519 public keys allowed to sign. When non-empty, a valid signature from one of these keys is required.
require_signature: boolRequire a valid signature even when trusted_keys is empty.
Implementations§
Trait Implementations§
Source§impl Clone for OpenOptions
impl Clone for OpenOptions
Source§impl Debug for OpenOptions
impl Debug for OpenOptions
Auto Trait Implementations§
impl Forget for OpenOptions
impl Freeze for OpenOptions
impl Move for OpenOptions
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnsafeUnpin for OpenOptions
impl UnwindSafe for OpenOptions
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