Expand description
§Schema hooks (DogRS-native)
Feathers-ish schema utilities:
- ResolveData: mutate ctx.data for write methods
- ValidateData: validate ctx.data for write methods
Key detail: resolvers/validators take &HookMeta<R,P> (immutable view)
to avoid borrow conflicts with &mut ctx.data.
Structs§
- Hook
Meta - Immutable view of the hook context (safe to pass while mutating ctx.data).
- Resolve
Data - Resolve/mutate
ctx.datafor create/patch/update. (FeathersresolveData) - Rules
- Tiny “rules” helper for nicer validation errors.
- Schema
Builder - Fluent builder used by
ServiceHooks::schema(...). - Validate
Data - Validate
ctx.datafor create/patch/update. (FeathersvalidateData)
Enums§
- Write
Methods - Which write methods should a schema hook apply to?
Traits§
- Schema
Hooks Ext - Extension method:
hooks.schema(|s| ...)