Registry / utility / former

former

JSON →
library2.46.0rscratesunverified

A flexible implementation of the Builder pattern supporting nested builders and collection-specific subformers. Simplify the construction of complex objects.

# Cargo.toml [dependencies] former = "2.46.0"
INSTALL
IMPORT
SIG · FORMER
F
former
utilityrustv2.46.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Former
use former::Former;

Use the Former derive macro to build a struct with a builder pattern.

use former::Former; #[derive(Former)] struct Config { name: String, timeout: u64, } fn main() { let config = Config::former() .name("my_app".to_string()) .timeout(30) .form(); println!("Config: {} timeout {}", config.name, config.timeout); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.46.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
former — cargo add former · libregistry