pub trait GenerateValue<T> {
    fn generate_value(
        &self,
        value: &T,
        context: &HashMap<&str, Value>,
        matcher: &Box<dyn VariantMatcher + Send + Sync>
    ) -> Result<T>; }
Expand description

Trait for something that can generate a value based on a source value.

Required methods

Generates a new value based on the source value. An error will be returned if the value can not be generated.

Implementors