pub struct PurgeConfig {
pub content_paths: Vec<String>,
pub safelist: Vec<String>,
pub blocklist: Vec<String>,
pub preserve_comments: bool,
pub preserve_keyframes: bool,
pub preserve_media_queries: bool,
}Expand description
Configuration for CSS purging
Fields§
§content_paths: Vec<String>§safelist: Vec<String>§blocklist: Vec<String>§preserve_comments: bool§preserve_keyframes: bool§preserve_media_queries: boolTrait Implementations§
Source§impl Clone for PurgeConfig
impl Clone for PurgeConfig
Source§fn clone(&self) -> PurgeConfig
fn clone(&self) -> PurgeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PurgeConfig
impl Debug for PurgeConfig
Auto Trait Implementations§
impl Freeze for PurgeConfig
impl RefUnwindSafe for PurgeConfig
impl Send for PurgeConfig
impl Sync for PurgeConfig
impl Unpin for PurgeConfig
impl UnwindSafe for PurgeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more