pub trait GenerateValue<T> {
    // Required method
    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§

source

fn generate_value( &self, value: &T, context: &HashMap<&str, Value>, matcher: &Box<dyn VariantMatcher + Send + Sync> ) -> Result<T>

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

Implementors§