poem_openapi

Trait OAuthScopes

Source
pub trait OAuthScopes {
    // Required methods
    fn meta() -> Vec<MetaOAuthScope>;
    fn name(&self) -> &'static str;
}
Expand description

Represents a OAuth scopes.

Required Methods§

Source

fn meta() -> Vec<MetaOAuthScope>

Gets metadata of this object.

Source

fn name(&self) -> &'static str

Get the scope name.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§