#[vconfig]Expand description
Re-export vconfig_codegen::rocket_variant_config as vconfig.
Example usage:
#[vconfig("my_config")] // my_config is the name of the configuration file without extension
// or #[vconfig(file = "[path]/my_config.toml")]
#[derive(Debug)]
struct MyConfig {
field1: String,
field2: i32,
}§vconfig_codegen::rocket_variant_config
Attribute to generate a rocket::request::FromRequest<'r> implementation for the struct applied to.
This attribute can only be applied to structs.
§Grammar
The grammar for the #[rocket_variant_config] attributes is defined as:
rocket_variant_config := Name* | File=Path
Name := configuration file name without extension, e.g. `rocket_variant_config("test")`
Path := path to the configuration file, e.g. `rocket_variant_config(file = "test.toml")`