Expand description
Procedural macros for the openpit SDK.
This crate provides derive macros that generate request-field capability implementations
expected by openpit policies.
§RequestFields
Derive for wrapper structs with named fields.
Field-level #[openpit(...)] items:
inner: marks the field used for passthrough delegation.TraitPath(method -> ReturnType): generate direct impl for the field.TraitPath(-> ReturnType): same as above, method inferred fromHas*trait name.
On a field marked with inner, trait items generate passthrough impls with
where InnerType: TraitPath.
Old syntax #[request_fields(...)] is rejected with a compile-time error that points to
#[openpit(...)].