{"id":59535,"library":"derive-setters","title":"Derive Setters","description":"Rust macro to automatically generate setter methods for a struct's fields.","status":"active","version":"0.1.9","language":"rust","source_language":null,"source_url":"https://github.com/Lymia/derive_setters","tags":["macro","setters","derive","struct"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nderive_setters = \"0.1.9\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add derive_setters","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Setters","correct":"use derive_setters::Setters;"}],"quickstart":{"code":"use derive_setters::Setters;\n\n#[derive(Setters)]\nstruct Config {\n    name: String,\n    version: u32,\n}\n\nfn main() {\n    let config = Config { name: \"foo\".into(), version: 1 };\n    let updated = config.set_name(\"bar\".into());\n    println!(\"{}\", updated.name);\n}","lang":"rust","description":"Derives setter methods for struct fields."},"warnings":[],"env_vars":null,"search_vec":"'automat':6 'deriv':1,17 'field':14 'generat':7 'macro':4,15 'method':9 'rust':3 'setter':2,8,16 'struct':12,18","created_at":"2026-06-16T17:07:34.157809+00:00","updated_at":"2026-06-16T17:07:34.157809+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/Lymia/derive_setters","github":"https://github.com/Lymia/derive_setters","docs":"https://docs.rs/derive_setters/","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-16","next_check":"2026-12-13","install_tag":null}}