pub struct ToolDisplayMeta {
pub verb: &'static str,
pub label: &'static str,
pub category: &'static str,
pub primary_arg_keys: &'static [&'static str],
}Expand description
Metadata describing how a tool should appear in the TUI.
Tools return this from display_meta() so the display registry can
auto-discover formatting without manual static entries.
Fields§
§verb: &'static strDisplay verb shown in TUI, e.g. “Read”, “Bash”.
label: &'static strFallback noun when no arg is available, e.g. “file”, “command”.
category: &'static strCategory name (matches ToolCategory variant names).
primary_arg_keys: &'static [&'static str]Ordered keys to try when extracting the primary arg for display.
Trait Implementations§
Source§impl Clone for ToolDisplayMeta
impl Clone for ToolDisplayMeta
Source§fn clone(&self) -> ToolDisplayMeta
fn clone(&self) -> ToolDisplayMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ToolDisplayMeta
Auto Trait Implementations§
impl Freeze for ToolDisplayMeta
impl RefUnwindSafe for ToolDisplayMeta
impl Send for ToolDisplayMeta
impl Sync for ToolDisplayMeta
impl Unpin for ToolDisplayMeta
impl UnsafeUnpin for ToolDisplayMeta
impl UnwindSafe for ToolDisplayMeta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more