#[derive(GFlags)]
{
// Attributes available to this derive:
#[gflags]
}
Expand description
§Struct level attributes
#[gflags(prefix = "...")] – apply this prefix to flag names
§Field level attributes
#[gflags(default = ...)] – default value for this flag
#[gflags(placeholder= "...")] – placeholder to display in help
#[gflags(skip)] – do not generate a flag for this field
#[gflags(type = "...")] – generate a flag with this type
#[gflags(visibility = "...")] – generate a flag with this visibility
Refer to the crate level documentation for a complete example.