diff --git a/actix_web/struct.FILES.html b/actix_web/struct.FILES.html index 42519d8..a60fd56 100644 --- a/actix_web/struct.FILES.html +++ b/actix_web/struct.FILES.html @@ -7,10 +7,10 @@
  • create filemap
  • - Fields

    __private_field: ()

    Methods from Deref<Target = Files>

    pub fn get(&'a self, path: &'a str) -> Option<&'a str>[src]

    Get relative file path

    + Fields__private_field: ()

    Methods from Deref<Target = Files>

    pub fn get(&'a self, path: &'a str) -> Option<&'a str>[src]

    Get relative file path

    If the modified filename path is ./prod/test.randomhash.svg, it will output /test.randomhash.svg. For full path, see get_full_path.

    -

    pub fn get_full_path(&'a self, path: &'a str) -> Option<&'a String>[src]

    Get file path

    +

    pub fn get_full_path(&'a self, path: &'a str) -> Option<&'a String>[src]

    Get file path

    If the modified filename path is ./prod/test.randomhash.svg, it will output /prod/test.randomhash.svg. For relative path, see get.

    Trait Implementations

    impl Deref for FILES[src]

    type Target = Files

    The resulting type after dereferencing.

    diff --git a/cache_buster/constant.CACHE_BUSTER_DATA_FILE.html b/cache_buster/constant.CACHE_BUSTER_DATA_FILE.html index 83e8c19..cf3aca1 100644 --- a/cache_buster/constant.CACHE_BUSTER_DATA_FILE.html +++ b/cache_buster/constant.CACHE_BUSTER_DATA_FILE.html @@ -1,7 +1,7 @@ CACHE_BUSTER_DATA_FILE in cache_buster - Rust

    Constant cache_buster::CACHE_BUSTER_DATA_FILE[][src]

    pub const CACHE_BUSTER_DATA_FILE: &str = "./src/cache_buster_data.json";

    file to which filemap is written during compilation + Change settings

    Constant cache_buster::CACHE_BUSTER_DATA_FILE[][src]

    pub const CACHE_BUSTER_DATA_FILE: &str = "./src/cache_buster_data.json";

    file to which filemap is written during compilation include this to .gitignore

    \ No newline at end of file diff --git a/cache_buster/filemap/index.html b/cache_buster/filemap/index.html index 4ed1b00..8a02a4e 100644 --- a/cache_buster/filemap/index.html +++ b/cache_buster/filemap/index.html @@ -1,16 +1,14 @@ cache_buster::filemap - Rust

    Module cache_buster::filemap[][src]

    Module describing runtime compoenet for fetching modified filenames

    + Change settings

    Module cache_buster::filemap[][src]

    Module describing runtime compoenet for fetching modified filenames

    Add the following tou your program to load the filemap during compiletime:

     use cache_buster::Files;
     use cache_buster::CACHE_BUSTER_DATA_FILE;
     
    -fn main(){
    -   let files = Files::new(CACHE_BUSTER_DATA_FILE);
    -}
    +let files = Files::new(CACHE_BUSTER_DATA_FILE);

    Structs

    Files

    Filemap struct

    diff --git a/cache_buster/filemap/struct.Files.html b/cache_buster/filemap/struct.Files.html index a4e92d4..342f4ff 100644 --- a/cache_buster/filemap/struct.Files.html +++ b/cache_buster/filemap/struct.Files.html @@ -1,24 +1,24 @@ Files in cache_buster::filemap - Rust

    Struct cache_buster::filemap::Files[][src]

    pub struct Files { /* fields omitted */ }

    Filemap struct

    + Change settings

    Struct cache_buster::filemap::Files[][src]

    pub struct Files { /* fields omitted */ }

    Filemap struct

    maps original names to generated names

    -

    Implementations

    impl Files[src]

    pub fn new(map: &str) -> Self[src]

    Load filemap in main program. Should be called from main program

    -

    pub fn get<'a>(&'a self, path: &'a str) -> Option<&'a str>[src]

    Get relative file path

    +

    Implementations

    impl Files[src]

    pub fn new(map: &str) -> Self[src]

    Load filemap in main program. Should be called from main program

    +

    pub fn get<'a>(&'a self, path: &'a str) -> Option<&'a str>[src]

    Get relative file path

    If the modified filename path is ./prod/test.randomhash.svg, it will output /test.randomhash.svg. For full path, see get_full_path.

    -

    pub fn get_full_path<'a>(&'a self, path: &'a str) -> Option<&'a String>[src]

    Get file path

    +

    pub fn get_full_path<'a>(&'a self, path: &'a str) -> Option<&'a String>[src]

    Get file path

    If the modified filename path is ./prod/test.randomhash.svg, it will output /prod/test.randomhash.svg. For relative path, see get.

    -

    Trait Implementations

    impl Clone for Files[src]

    Trait Implementations

    impl Clone for Files[src]

    impl Debug for Files[src]

    impl<'de> Deserialize<'de> for Files[src]

    impl PartialEq<Files> for Files[src]

    impl Debug for Files[src]

    impl<'de> Deserialize<'de> for Files[src]

    impl PartialEq<Files> for Files[src]

    impl Serialize for Files[src]

    impl StructuralPartialEq for Files[src]

    Auto Trait Implementations

    impl RefUnwindSafe for Files

    impl Send for Files

    impl Sync for Files

    impl Unpin for Files

    impl UnwindSafe for Files

    Blanket Implementations

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

    impl Serialize for Files[src]

    impl StructuralPartialEq for Files[src]

    Auto Trait Implementations

    impl RefUnwindSafe for Files

    impl Send for Files

    impl Sync for Files

    impl Unpin for Files

    impl UnwindSafe for Files

    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]

    +let files = Files::new(CACHE_BUSTER_DATA_FILE); +// the path to the file before setting up for cache busting +files.get("./dist/github.svg");

    Re-exports

    pub use processor::BusterBuilder;
    pub use filemap::Files;

    Modules

    filemap

    Module describing runtime compoenet for fetching modified filenames

    diff --git a/cache_buster/processor/enum.BusterBuilderError.html b/cache_buster/processor/enum.BusterBuilderError.html index 02c7c14..f73445c 100644 --- a/cache_buster/processor/enum.BusterBuilderError.html +++ b/cache_buster/processor/enum.BusterBuilderError.html @@ -1,7 +1,7 @@ BusterBuilderError in cache_buster::processor - Rust

    Enum cache_buster::processor::BusterBuilderError[][src]

    #[non_exhaustive]
    +                Change settings

    Enum cache_buster::processor::BusterBuilderError[][src]

    #[non_exhaustive]
     pub enum BusterBuilderError {
         UninitializedField(&'static str),
         ValidationError(String),
    @@ -10,14 +10,14 @@ pub enum BusterBuilderError {
                        Variants (Non-exhaustive)
     
    Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
    UninitializedField(&'static str)

    Uninitialized field

    ValidationError(String)

    Custom validation error

    -

    Trait Implementations

    impl Debug for BusterBuilderError[src]

    impl Display for BusterBuilderError[src]

    impl Error for BusterBuilderError[src]

    Trait Implementations

    impl Debug for BusterBuilderError[src]

    impl Display for BusterBuilderError[src]

    impl Error for BusterBuilderError[src]

    impl From<String> for BusterBuilderError[src]

    impl From<UninitializedFieldError> for BusterBuilderError[src]

    impl From<String> for BusterBuilderError[src]

    impl From<UninitializedFieldError> for BusterBuilderError[src]

    Auto Trait Implementations

    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]

    There’s a runtime component to this library which will let you read modified filenames from within your program. See [Files]

    Structs

    diff --git a/cache_buster/processor/struct.Buster.html b/cache_buster/processor/struct.Buster.html index e8a9c4b..1dfa147 100644 --- a/cache_buster/processor/struct.Buster.html +++ b/cache_buster/processor/struct.Buster.html @@ -1,12 +1,12 @@ Buster in cache_buster::processor - Rust

    Struct cache_buster::processor::Buster[][src]

    pub struct Buster<'a> { /* fields omitted */ }

    Configuration for setting up cache-busting

    -

    Implementations

    impl<'a> Buster<'a>[src]

    pub fn process(&self) -> Result<(), Error>[src]

    Processes files.

    + Change settings

    Struct cache_buster::processor::Buster[][src]

    pub struct Buster<'a> { /* fields omitted */ }

    Configuration for setting up cache-busting

    +

    Implementations

    impl<'a> Buster<'a>[src]

    pub fn process(&self) -> Result<(), Error>[src]

    Processes files.

    Panics when a weird MIME is encountered.

    -

    Trait Implementations

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

    Trait Implementations

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

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

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

    Auto Trait Implementations

    impl<'a> RefUnwindSafe for Buster<'a>

    impl<'a> Send for Buster<'a>

    impl<'a> Sync for Buster<'a>

    impl<'a> Unpin for Buster<'a>

    impl<'a> UnwindSafe for Buster<'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]