Skip to main content

PermissionHook

Trait PermissionHook 

Source
pub trait PermissionHook: Send {
    // Required method
    fn approve(&mut self, tool: &str, args: &Value) -> bool;
}
Expand description

Erlaubnis-Hook vor jedem Werkzeug-Aufruf. M1: nur der Trait; der Editor liefert die UI-Implementierung (M4).

Required Methods§

Source

fn approve(&mut self, tool: &str, args: &Value) -> bool

false = Aufruf blockieren (KI bekommt “vom Benutzer abgelehnt”).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§