{"id":65133,"library":"diff-struct","title":"Diff Struct","description":"A trait for diffing and applying diffs to types.","status":"active","version":"0.5.3","language":"rust","source_language":null,"source_url":"https://github.com/benhall-7/diff-struct","tags":["diff","patch","derive","struct","comparison"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ndiff-struct = \"0.5.3\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add diff-struct","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Diff","correct":"use diff_struct::Diff;"}],"quickstart":{"code":"use diff_struct::Diff;\n\n#[derive(Diff)]\nstruct Point { x: i32, y: i32 }\n\nfn main() {\n    let a = Point { x: 0, y: 0 };\n    let b = Point { x: 1, y: 2 };\n    let diff = a.diff(&b);\n    println!(\"Diff: {:?}\", diff);\n}","lang":"rust","description":"Derive Diff trait and compute difference between two struct instances."},"warnings":[],"env_vars":null,"search_vec":"'appli':8 'comparison':16 'deriv':14 'dif':6 'diff':1,9,12 'patch':13 'struct':2,15 'trait':4 'type':11","created_at":"2026-06-17T17:05:53.281373+00:00","updated_at":"2026-06-17T17:05:53.281373+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/benhall-7/diff-struct","github":"https://github.com/benhall-7/diff-struct","docs":"https://docs.rs/diff-struct/","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}}