pub struct CompressionOptions {
pub level: CompressionLevel,
pub remove_unused_media: bool,
pub remove_properties: bool,
pub remove_notes: bool,
pub remove_comments: bool,
pub optimize_xml: bool,
pub target_size: usize,
}Expand description
Compression options
Fields§
§level: CompressionLevelCompression level
remove_unused_media: boolRemove unused media files
remove_properties: boolRemove document properties
remove_notes: boolRemove notes slides
remove_comments: boolRemove comments
optimize_xml: boolOptimize XML (remove whitespace)
target_size: usizeTarget file size in bytes (0 = no target)
Implementations§
Source§impl CompressionOptions
impl CompressionOptions
Sourcepub fn with_level(self, level: CompressionLevel) -> Self
pub fn with_level(self, level: CompressionLevel) -> Self
Set compression level
Sourcepub fn with_unused_media_removal(self, remove: bool) -> Self
pub fn with_unused_media_removal(self, remove: bool) -> Self
Set unused media removal
Sourcepub fn with_properties_removal(self, remove: bool) -> Self
pub fn with_properties_removal(self, remove: bool) -> Self
Set properties removal
Sourcepub fn with_notes_removal(self, remove: bool) -> Self
pub fn with_notes_removal(self, remove: bool) -> Self
Set notes removal
Sourcepub fn with_comments_removal(self, remove: bool) -> Self
pub fn with_comments_removal(self, remove: bool) -> Self
Set comments removal
Sourcepub fn with_xml_optimization(self, optimize: bool) -> Self
pub fn with_xml_optimization(self, optimize: bool) -> Self
Set XML optimization
Sourcepub fn with_target_size(self, size: usize) -> Self
pub fn with_target_size(self, size: usize) -> Self
Set target file size
Trait Implementations§
Source§impl Clone for CompressionOptions
impl Clone for CompressionOptions
Source§fn clone(&self) -> CompressionOptions
fn clone(&self) -> CompressionOptions
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 CompressionOptions
impl Debug for CompressionOptions
Auto Trait Implementations§
impl Freeze for CompressionOptions
impl RefUnwindSafe for CompressionOptions
impl Send for CompressionOptions
impl Sync for CompressionOptions
impl Unpin for CompressionOptions
impl UnsafeUnpin for CompressionOptions
impl UnwindSafe for CompressionOptions
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