pub struct CssOptions { /* private fields */ }Expand description
Configuration for crate::Server::with_css_tool: independent bundle/minify
toggles, all four combinations valid.
Implementations§
Source§impl CssOptions
impl CssOptions
Sourcepub fn bundle(self, bundle: bool) -> Self
pub fn bundle(self, bundle: bool) -> Self
Bundle every .css under the source folders into a single output file,
resolving @import via the configured CssTool.
Sourcepub fn bundle_output_name(self, name: impl Into<String>) -> Self
pub fn bundle_output_name(self, name: impl Into<String>) -> Self
Output file name for bundle mode, under the server’s output dir (default
styles.css). Ignored when bundle is false.
Trait Implementations§
Source§impl Clone for CssOptions
impl Clone for CssOptions
Source§fn clone(&self) -> CssOptions
fn clone(&self) -> CssOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CssOptions
impl Debug for CssOptions
Auto Trait Implementations§
impl Freeze for CssOptions
impl RefUnwindSafe for CssOptions
impl Send for CssOptions
impl Sync for CssOptions
impl Unpin for CssOptions
impl UnsafeUnpin for CssOptions
impl UnwindSafe for CssOptions
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