pub enum CapabilityKind {
Skill,
Tool {
parameters: Value,
implementation: ImplementationConfig,
},
Hook {
hook: HookDefinition,
},
McpServer {
server: McpServerConfig,
},
Policy {
policy: PolicyConfig,
},
}Variants§
Skill
Tool
Hook
Fields
§
hook: HookDefinitionMcpServer
Fields
§
server: McpServerConfigPolicy
Fields
§
policy: PolicyConfigImplementations§
Source§impl CapabilityKind
impl CapabilityKind
pub fn capability_type(&self) -> CapabilityType
Trait Implementations§
Source§impl Clone for CapabilityKind
impl Clone for CapabilityKind
Auto Trait Implementations§
impl Forget for CapabilityKind
impl Freeze for CapabilityKindwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(String, Vec<u8>)>: Freeze,
*const LeafNode<String, EnvRef> is !null: Freeze,
PhantomData<Box<(String, EnvRef)>>: Freeze,
*const LeafNode<String, HeaderRef> is !null: Freeze,
PhantomData<Box<(String, HeaderRef)>>: Freeze,
PhantomData<PolicyRule>: Freeze,
impl Move for CapabilityKind
impl RefUnwindSafe for CapabilityKind
impl Send for CapabilityKind
impl Sync for CapabilityKind
impl Unpin for CapabilityKind
impl UnsafeUnpin for CapabilityKindwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, Vec<u8>)>: UnsafeUnpin,
*const LeafNode<String, EnvRef> is !null: UnsafeUnpin,
PhantomData<Box<(String, EnvRef)>>: UnsafeUnpin,
*const LeafNode<String, HeaderRef> is !null: UnsafeUnpin,
PhantomData<Box<(String, HeaderRef)>>: UnsafeUnpin,
PhantomData<PolicyRule>: UnsafeUnpin,
impl UnwindSafe for CapabilityKindwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<String, EnvRef>: UnwindSafe,
BTreeMap<String, HeaderRef>: UnwindSafe,
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