[][src]Struct tauri_inliner::Config

pub struct Config {
    pub inline_fonts: bool,
    pub remove_new_lines: bool,
    pub inline_remote: bool,
}

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.

remove_new_lines: bool

Replace EOL's with a space character. Useful to keep line numbers the same in the output to help with debugging.

inline_remote: bool

Whether to inline remote content or not.

Trait Implementations

impl Clone for Config[src]

impl Copy for Config[src]

impl Debug for Config[src]

impl Default for Config[src]

fn default() -> Config[src]

Enables everything

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.