-
-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Description
Enables the developer to not have to pass in params specs for items that had mapping functions.
Currently ParamsSpec
and related types -- ParamsSpecFieldless
, ValueSpec
, FieldWiseSpec
(generated by proc macro) -- hold MappingFn
s within their type.
This forces users to respecify the params specs with mapping functions in subsequent CmdCtx::builder_*
instantiation.
This change is to:
- Get developers to instantiate a
Map<MappingFnK, Box<dyn MappingFn>>
, and pass that toCmdCtx::builder_*
. ParamsSpec
and related types will hold theMappingFnK
.- Developers should define the
MappingFnK
, an all-unit-variant enum with sensible names to identify the mapping function.
Metadata
Metadata
Assignees
Labels
No labels
Projects
Status
Done