Skip to main content

AgentSelectionMetadata

Trait AgentSelectionMetadata 

Source
pub trait AgentSelectionMetadata {
    // Required methods
    fn name(&self) -> &'static str;
    fn description(&self) -> &'static str;
}
Expand description

Human-readable metadata for slash-menu selectable items.

Required Methods§

Source

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

Returns a stable item name shown in menus.

Source

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

Returns a short descriptive subtitle shown in menus.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§