pub struct InlineOptions<'a> {
    pub inline_style_tags: bool,
    pub remove_style_tags: bool,
    pub base_url: Option<Url>,
    pub load_remote_stylesheets: bool,
    pub extra_css: Option<Cow<'a, str>>,
}
Expand description

Configuration options for CSS inlining process.

Fields

inline_style_tags: bool

Whether to inline CSS from “style” tags.

remove_style_tags: bool

Remove “style” tags after inlining.

base_url: Option<Url>

Used for loading external stylesheets via relative URLs.

load_remote_stylesheets: bool

Whether remote stylesheets should be loaded or not.

extra_css: Option<Cow<'a, str>>

Additional CSS to inline.

Implementations

Options for “compact” HTML output.

Override whether “style” tags should be inlined.

Override whether “style” tags should be removed after processing.

Set base URL that will be used for loading external stylesheets via relative URLs.

Override whether remote stylesheets should be loaded.

Set additional CSS to inline.

Create a new CSSInliner instance from this options.

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.