Skip to main content

Module callback

Module callback 

Source
Expand description

Hook callback trait + decision type + type-erasure plumbing.

Re-exportsยง

use std::marker::PhantomData; ๐Ÿ”’
use serde_json::Value; ๐Ÿ”’
use forge_primitives::HookContext; ๐Ÿ”’

Structsยง

ErasedCallback ๐Ÿ”’
Adapter so any typed HookCallback<I> implements ErasedHookCallback when I: DeserializeOwned.
HookDecision
A hook decision.

Enumsยง

HookDecisionKind ๐Ÿ”’

Traitsยง

ErasedHookCallback
Type-erased hook callback. The concrete input type is rebuilt at dispatch time from input.hook_event_name.
HookCallback
Trait for hook callbacks. Each hook kind has its own concrete callback; the trait is parameterised over the input type.