Skip to main content

Tags

Trait Tags 

Source
pub trait Tags {
    // Required methods
    fn register(&self, registry: &mut Registry);
    fn name(&self) -> &'static str;
}
Expand description

Represents an OpenAPI tags.

Required Methods§

Source

fn register(&self, registry: &mut Registry)

Register this tag type to registry.

Source

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

Gets the tag name.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§