Struct rust_embed_for_web_utils::Config
source · pub struct Config { /* private fields */ }
Implementations§
source§impl Config
impl Config
pub fn new() -> Self
pub fn set_gzip(&mut self, status: bool)
pub fn set_br(&mut self, status: bool)
sourcepub fn should_include(&self, path: &str) -> bool
pub fn should_include(&self, path: &str) -> bool
Check if a file at some path should be included based on this config.
When deciding, includes always have priority over excludes. That means you typically will list paths you want excluded, then add includes to make an exception for some subset of files.