Enum cache_buster::processor::NoHashCategory[][src]

pub enum NoHashCategory<'a> {
    FileExtentions(Vec<&'a str>),
    FilePaths(Vec<&'a str>),
}

Items to avoid hash calculation.

This is useful when serving vendor static files which are interlinked, where chaing file names should mean changing how the vendor files pulls its dependencies — which are beyond the abilities of cache_buster.

use cache_buster::NoHashCategory;

let extensions = NoHashCategory::FileExtentions(vec!["wasm"]);
let files = NoHashCategory::FileExtentions(vec!["swagger-ui-bundle.js", "favicon-16x16.png"]);

Variants

FileExtentions(Vec<&'a str>)

vector of file extensions that should be avoided for hash processing

FilePaths(Vec<&'a str>)

list of file paths that should be avoided for file processing

Trait Implementations

impl<'a> Clone for NoHashCategory<'a>[src]

impl<'a> Debug for NoHashCategory<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for NoHashCategory<'a>

impl<'a> Send for NoHashCategory<'a>

impl<'a> Sync for NoHashCategory<'a>

impl<'a> Unpin for NoHashCategory<'a>

impl<'a> UnwindSafe for NoHashCategory<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.