[][src]Trait pact_matching::models::generators::GenerateValue

pub trait GenerateValue<T> {
    fn generate_value(
        &self,
        value: &T,
        context: &HashMap<String, Value>
    ) -> Option<T>; }

Trait that represents generation of a value based on a source value.

Required methods

fn generate_value(
    &self,
    value: &T,
    context: &HashMap<String, Value>
) -> Option<T>

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

Loading content...

Implementors

impl GenerateValue<Value> for Generator[src]

impl GenerateValue<u16> for Generator[src]

impl GenerateValue<String> for Generator[src]

impl GenerateValue<Vec<String>> for Generator[src]

Loading content...