logo

Derive Macro poem_openapi::Tags

source · []
#[derive(Tags)]
{
    // Attributes available to this derive:
    #[oai]
}
Expand description

Define a OpenAPI Tags.

Macro parameters

AttributedescriptionTypeOptional
rename_allRename all the items according to the given case convention. The possible values are “lowercase”, “UPPERCASE”, “PascalCase”, “camelCase”, “snake_case”, “SCREAMING_SNAKE_CASE”.stringY

Item parameters

AttributedescriptionTypeOptional
renameRename the tag namestringY
external_docsSpecify a external resource for extended documentationstringY

Examples

use poem_openapi::Tags;

#[derive(Tags)]
enum ApiTags {
    /// Operations about user
    User,
    /// Operations about pet
    Pet,
}