#[derive(OAuthScopes)]
{
// Attributes available to this derive:
#[oai]
}
Expand description
Define a OAuth scopes.
Attribute | Description | Type | Optional |
rename_all | Rename all the items according to the given case convention. The possible values are “lowercase”, “UPPERCASE”, “PascalCase”, “camelCase”, “snake_case”, “SCREAMING_SNAKE_CASE”, “kebab-case”, “SCREAMING-KEBAB-CASE”. | string | Y |
Attribute | Description | Type | Optional |
rename | Rename the scope name | string | Y |
use poem_openapi::OAuthScopes;
#[derive(OAuthScopes)]
enum GithubScopes {
Read,
Write,
}