A flexible implementation of the Builder pattern supporting nested builders and collection-specific subformers. Simplify the construction of complex objects.
#![allow(dead_code)]useformer::Former;#[derive( Debug, PartialEq, Former )]// #[ debug ] // Commented out - debug attribute only for temporary debugging
pubstructMinimal<'a>{value:&'astr,
}fnmain(){let data ="test";let instance =Minimal::former().value(data).form();assert_eq!(instance.value,"test");}