pub struct HandlerDef {
pub name: &'static str,
pub description: &'static str,
pub visibility: Visibility,
pub category: VerbCategory,
}Expand description
Handler metadata for discovery and documentation (ADR-023, ADR-025).
Replaces the previous VerbDef. Every entry carries a visibility tag
so the registry can separate the MCP-exposed surface from internal handlers,
and a category that classifies the illocutionary force of the verb
per the speech-act taxonomy in ADR-025.
Fields§
§name: &'static str§description: &'static str§visibility: Visibility§category: VerbCategoryIllocutionary force classification (ADR-025). Use Assertive for
Subhandler entries that have no external callers.
Trait Implementations§
Source§impl Clone for HandlerDef
impl Clone for HandlerDef
Source§fn clone(&self) -> HandlerDef
fn clone(&self) -> HandlerDef
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 moreSource§impl Debug for HandlerDef
impl Debug for HandlerDef
Source§impl PartialEq for HandlerDef
impl PartialEq for HandlerDef
Source§fn eq(&self, other: &HandlerDef) -> bool
fn eq(&self, other: &HandlerDef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HandlerDef
impl StructuralPartialEq for HandlerDef
Auto Trait Implementations§
impl Freeze for HandlerDef
impl RefUnwindSafe for HandlerDef
impl Send for HandlerDef
impl Sync for HandlerDef
impl Unpin for HandlerDef
impl UnsafeUnpin for HandlerDef
impl UnwindSafe for HandlerDef
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