dir_type

Macro dir_type 

Source
dir_type!() { /* proc-macro */ }
Expand description

Procedural macro for creating a simple directory type.

Creates a type representing a directory with standard directory operations. Automatically includes serde derives when the serde feature is enabled.

§Example

dir_type!(CacheDir);

let cache = CacheDir::new("/var/cache/app");
cache.create_all()?;