Struct cache_buster::filemap::Files [−][src]
pub struct Files { /* fields omitted */ }
Filemap struct
maps original names to generated names
Implementations
impl Files
[src]
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
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<'de> Deserialize<'de> for Files
[src]
impl<'de> Deserialize<'de> for Files
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,