Struct rust_embed_for_web_utils::Config 
source · pub struct Config { /* private fields */ }Implementations
sourceimpl 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.
pub fn should_gzip(&self) -> bool
pub fn should_br(&self) -> bool
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more