Skip to main content

ParameterCallback

Type Alias ParameterCallback 

Source
pub type ParameterCallback = Arc<dyn Fn(&Context, &dyn Parameter, Arc<dyn Any + Send + Sync>) -> Result<Arc<dyn Any + Send + Sync>, ClickError> + Send + Sync>;
Expand description

Callback for parameter value processing.

Receives the current context, the parameter, and the converted value. Returns the (possibly transformed) value or an error.

Aliased Typeยง

pub struct ParameterCallback { /* private fields */ }