Trait tendermint_testgen::generator::Generator[][src]

pub trait Generator<Output: Serialize>: FromStr<Err = SimpleError> + Clone {
    fn merge_with_default(self, default: Self) -> Self;
fn generate(&self) -> Result<Output, SimpleError>; fn encode(&self) -> Result<String, SimpleError> { ... } }
Expand description

A trait that allows to generate complex objects from simple companion objects. A companion type should have a simple API, leaving most fields optional.

Required methods

Merge this companion with the another, default one. The options present in this object will override those in the default one.

Generate the complex object from this companion object.

Provided methods

Generate and serialize the complex object

Implementors