[−][src]Struct css_inline::InlineOptions
Configuration options for CSS inlining process.
Fields
Whether to inline CSS from "style" tags.
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
impl<'a> InlineOptions<'a>
[src]
pub fn compact() -> Self
[src]
Options for "compact" HTML output.
pub fn inline_style_tags(self, inline_style_tags: bool) -> Self
[src]
Override whether "style" tags should be inlined.
pub fn remove_style_tags(self, remove_style_tags: bool) -> Self
[src]
Override whether "style" tags should be removed after processing.
pub fn base_url(self, base_url: Option<Url>) -> Self
[src]
Set base URL that will be used for loading external stylesheets via relative URLs.
pub fn load_remote_stylesheets(self, load_remote_stylesheets: bool) -> Self
[src]
Override whether remote stylesheets should be loaded.
pub fn extra_css(self, extra_css: Option<Cow<'a, str>>) -> Self
[src]
Set additional CSS to inline.
pub fn build(self) -> CSSInliner<'a>
[src]
Create a new CSSInliner
instance from this options.
Trait Implementations
impl<'a> Debug for InlineOptions<'a>
[src]
impl<'_> Default for InlineOptions<'_>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for InlineOptions<'a>
impl<'a> Send for InlineOptions<'a>
impl<'a> Sync for InlineOptions<'a>
impl<'a> Unpin for InlineOptions<'a>
impl<'a> UnwindSafe for InlineOptions<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,