{"id":71440,"library":"builder-pattern","title":"builder-pattern","description":"A derivable macro for declaring a builder pattern, simplifying struct construction with optional fields.","status":"active","version":"0.4.2","language":"rust","source_language":null,"source_url":"https://github.com/SeokminHong/builder-pattern","tags":["builder","macro","derive","pattern","construction"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nbuilder-pattern = \"0.4.2\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add builder-pattern","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Builder","correct":"use builder_pattern::Builder;"}],"quickstart":{"code":"use builder_pattern::Builder;\n\n#[derive(Builder)]\nstruct Config {\n    name: String,\n    #[default = 42]\n    value: i32,\n}\n\nlet config = Config::new().name(\"test\".into()).build().unwrap();","lang":"rust","description":"Derives a builder for a struct and constructs an instance with chained methods."},"warnings":[{"fix":"Use #[default] attributes or ensure all fields are provided before calling .build().","message":"The macro requires all fields to have defaults or be explicitly set; missing fields cause a runtime panic.","severity":"gotcha","affected_versions":">=0.4.0"}],"env_vars":null,"search_vec":"'builder':2,10,18 'builder-pattern':1 'construct':14,22 'declar':8 'deriv':5,20 'field':17 'macro':6,19 'option':16 'pattern':3,11,21 'simplifi':12 'struct':13","created_at":"2026-06-17T18:26:55.742932+00:00","updated_at":"2026-06-17T18:26:55.742932+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/SeokminHong/builder-pattern","github":"https://github.com/SeokminHong/builder-pattern","docs":"https://docs.rs/builder-pattern/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}