pub struct Cfg {
pub keep_closing_tags: bool,
pub keep_comments: bool,
pub keep_html_and_head_opening_tags: bool,
pub keep_input_type_text_attr: bool,
pub keep_ssi_comments: bool,
pub remove_bangs: bool,
pub remove_processing_instructions: bool,
}
Expand description
Configuration settings that can be adjusted and passed to a minification function to change the minification approach.
Fields§
Do not omit closing tags when possible.
keep_comments: bool
Keep all comments.
Do not omit <html>
and <head>
opening tags when they don’t have attributes.
keep_input_type_text_attr: bool
Keep type=text
attribute name and value on <input>
elements.
keep_ssi_comments: bool
Keep SSI comments.
remove_bangs: bool
Remove all bangs.
remove_processing_instructions: bool
Remove all processing instructions.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cfg
impl RefUnwindSafe for Cfg
impl Send for Cfg
impl Sync for Cfg
impl Unpin for Cfg
impl UnwindSafe for Cfg
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