Skip to main content

Crate static_file_resolver

Crate static_file_resolver 

Source
Expand description

static-file-resolver

A library that resolves the file a request asks for under a root directory. It refuses a path that climbs out of the root, so a request cannot reach a file the root does not hold.

Structs§

StaticFileResolver
The rules that decide which file a request is answered with.

Derive Macros§

CustomDebug
A procedural macro that implements the std::fmt::Debug trait for a type, with support for the #[debug(skip)] attribute to skip specific fields.
Data
A procedural macro that combines getter, mutable getter, and setter functionality in a single derive.
DisplayDebug
A procedural macro that implements the std::fmt::Display trait for a type, using the standard debug format ({:?}) for formatting.
DisplayDebugFormat
A procedural macro that implements the std::fmt::Display trait for a type, using the detailed debug format ({:#?}) for formatting.
Getter
A procedural macro that automatically generates getter methods for struct and enum fields.
GetterMut
A procedural macro that automatically generates mutable getter methods for struct and enum fields.
New
A procedural macro that generates a constructor function for structs.
Setter
A procedural macro that automatically generates setter methods for struct and enum fields.