{"$schema":"https://toolsly.tools/schemas/tool-manifest-v1.json","generated":"2026-05-20T20:47:38.290Z","discovery":{"catalog":"https://toolsly.tools/tools.json","llmsTxt":"https://toolsly.tools/llms.txt","sitemap":"https://toolsly.tools/sitemap.xml"},"relatedTools":[{"slug":"qr-code-reader","name":"QR Code Reader","url":"https://toolsly.tools/qr-code-reader"},{"slug":"qr-code-generator","name":"QR Code Generator","url":"https://toolsly.tools/qr-code-generator"},{"slug":"file-to-hex","name":"File to Hex Dump","url":"https://toolsly.tools/file-to-hex"},{"slug":"hex-to-file","name":"Hex to Binary File","url":"https://toolsly.tools/hex-to-file"},{"slug":"wifi-qr-code-generator","name":"Wi-Fi QR Code Generator","url":"https://toolsly.tools/wifi-qr-code-generator"},{"slug":"vcard-qr-code-generator","name":"vCard QR Code Generator","url":"https://toolsly.tools/vcard-qr-code-generator"},{"slug":"barcode-generator","name":"Barcode Generator","url":"https://toolsly.tools/barcode-generator"},{"slug":"base64-encode","name":"Base64 Encode","url":"https://toolsly.tools/base64-encode"}],"kind":"utility","slug":"json-to-rust-struct","name":"JSON to Rust Struct","description":"Generate Rust structs with serde derives from any JSON payload — fields auto-renamed to snake_case.","longDescription":"Paste any JSON object or array and generate matching Rust structs deriving `Serialize`, `Deserialize`, and `Debug` from the `serde` crate. Field names are converted to snake_case, with `#[serde(rename = \"originalKey\")]` added when the original key differs. Nested objects become their own top-level structs and arrays of objects become `Vec<Struct>`. Heterogeneous arrays and null fields fall back to `serde_json::Value`. Runs entirely in your browser — free, online, no upload.","category":"text","categoryName":"Text & Encoding","keywords":["json to rust","json to rust struct","rust struct generator","json to serde","serde struct from json","rust struct from json","json to rust online","json to rust free","rust codegen json","infer rust types from json","json to serde struct","rust serialize deserialize"],"badge":"Generator","url":"https://toolsly.tools/json-to-rust-struct","inputs":[{"type":"text","key":"json","label":"JSON","placeholder":"{\"name\": \"Ada\", \"age\": 36}","multiline":true,"monospace":true},{"type":"text","key":"rootName","label":"Root struct name","defaultValue":"Root"}],"outputs":[{"key":"code","label":"Rust","multiline":true}],"invocation":{"webUi":"https://toolsly.tools/json-to-rust-struct","api":null,"notes":"Currently invoked via the web UI at `webUi`. Inputs are form fields; outputs are structured text values. A remote MCP/REST API is planned."}}