Derive Macro poem_openapi::Tags [−][src]
#[derive(Tags)]
{
// Attributes available to this derive:
#[oai]
}
Expand description
Define a OpenAPI Tags.
Macro parameters
Attribute | description | Type | Optional |
---|---|---|---|
rename_items | Rename all the items according to the given case convention. The possible values are “lowercase”, “UPPERCASE”, “PascalCase”, “camelCase”, “snake_case”, “SCREAMING_SNAKE_CASE”. | string | Y |
Item parameters
Attribute | description | Type | Optional |
---|---|---|---|
name | Item name | string | Y |
Examples
use poem_openapi::Tags;
#[derive(Tags)]
enum ApiTags {
/// Operations about user
User,
/// Operations about pet
Pet,
}