pub struct SaveOptions {
pub mode: SaveMode,
pub version: Version,
pub object_streams: bool,
pub compress: bool,
pub encryption: Option<Encryption>,
pub document_id: Option<[u8; 16]>,
pub entropy: Option<Arc<dyn Entropy>>,
}Expand description
Options for Document::save.
Fields§
§mode: SaveModeFull rewrite or incremental append.
version: VersionOutput version for a full save (1.7 by default, or 2.0). An incremental save keeps the original header.
object_streams: boolPack non-stream objects into object streams with an xref stream (full save). Without it, a classic xref table is written.
compress: boolFlate-compress streams that have no filter.
encryption: Option<Encryption>Encrypt the output (full save only).
document_id: Option<[u8; 16]>The document ID to write; by default it is derived from the content.
entropy: Option<Arc<dyn Entropy>>Randomness for encryption keys, salts and IVs. Required whenever something is encrypted.
Trait Implementations§
Source§impl Clone for SaveOptions
impl Clone for SaveOptions
Source§fn clone(&self) -> SaveOptions
fn clone(&self) -> SaveOptions
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 SaveOptions
impl Debug for SaveOptions
Source§impl Default for SaveOptions
impl Default for SaveOptions
Source§fn default() -> SaveOptions
fn default() -> SaveOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SaveOptions
impl !UnwindSafe for SaveOptions
impl Freeze for SaveOptions
impl Send for SaveOptions
impl Sync for SaveOptions
impl Unpin for SaveOptions
impl UnsafeUnpin for SaveOptions
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