pub struct Config {
pub inline_fonts: bool,
pub remove_new_lines: bool,
}
Expand description
Config struct that is passed to inline_file()
and inline_html_string()
Default enables everything
Fields§
§inline_fonts: bool
Whether or not to inline fonts in the css as base64. Currently has no effect
remove_new_lines: bool
Replace \r
and \r\n
with a space character. Useful to keep line numbers the same in the output to help with debugging.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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