Skip to main content

TagReflection

Trait TagReflection 

Source
pub trait TagReflection {
    // Required methods
    fn tag(&self) -> &'static str;
    fn description(&self) -> &'static str;

    // Provided methods
    fn example(&self) -> Option<&'static str> { ... }
    fn spec(&self) -> Option<&'static str> { ... }
}

Required Methods§

Source

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

Source

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

Provided Methods§

Source

fn example(&self) -> Option<&'static str>

Source

fn spec(&self) -> Option<&'static str>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§