pub struct AssetsConfig {
pub dir_path: String,
pub http: Option<HttpCache>,
pub precompression: Option<Vec<CompressionAlgorithm>>,
pub minify_css: Option<bool>,
pub minify_js: Option<bool>,
pub internal_cache_control_header_value: Option<String>,
}Fields§
§dir_path: StringRelative path to assets directory.
http: Option<HttpCache>HTTP cache configuration.
TODO: provide a way to pattern match files for which to apply TODO: specific cache controls.
precompression: Option<Vec<CompressionAlgorithm>>Which encodings to use when precompressing assets.
Serving priority is dictated by specified order.
minify_css: Option<bool>Determines whether CSS files should be minified, prior to write.
minify_js: Option<bool>Determines whether JS files should be minified, prior to write.
internal_cache_control_header_value: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for AssetsConfig
impl Clone for AssetsConfig
Source§fn clone(&self) -> AssetsConfig
fn clone(&self) -> AssetsConfig
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 AssetsConfig
impl Debug for AssetsConfig
Source§impl<'de> Deserialize<'de> for AssetsConfig
impl<'de> Deserialize<'de> for AssetsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AssetsConfig
impl RefUnwindSafe for AssetsConfig
impl Send for AssetsConfig
impl Sync for AssetsConfig
impl Unpin for AssetsConfig
impl UnwindSafe for AssetsConfig
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