MCPcopy Index your code
hub / github.com/AI45Lab/Code / with_config

Method with_config

core/src/hooks/engine.rs:91–94  ·  view source on GitHub ↗

Set the configuration

(mut self, config: HookConfig)

Source from the content-addressed store, hash-verified

89
90 /// Set the configuration
91 pub fn with_config(mut self, config: HookConfig) -> Self {
92 self.config = config;
93 self
94 }
95
96 /// Check if an event matches this hook
97 pub fn matches(&self, event: &HookEvent) -> bool {

Callers 3

test_hook_serializationFunction · 0.45

Calls

no outgoing calls

Tested by 3

test_hook_serializationFunction · 0.36