Trait sample_config::SampleConfig
source · pub trait SampleConfig {
const SAMPLE_OUTPUT_TYPE: OutputType;
fn generate_sample_yaml(&self) -> String;
}Expand description
Generate sample configs for Rust data constructs automatically using an example instance.
Required Associated Constants
sourceconst SAMPLE_OUTPUT_TYPE: OutputType
const SAMPLE_OUTPUT_TYPE: OutputType
Whether this data construct produces a value (e.g. String) or fields (e.g. a struct).
Required Methods
sourcefn generate_sample_yaml(&self) -> String
fn generate_sample_yaml(&self) -> String
Generate a string containing the sample config in Yaml format.