#[derive(OAuthScopes)] { // Attributes available to this derive: #[oai] }
Define a OAuth scopes.
use poem_openapi::OAuthScopes; #[derive(OAuthScopes)] enum GithubScopes { /// Read data Read, /// Write data Write, }