샘플
Serialize and deserialize a struct as JSON with serde in Rust
sha256:84ec319af14787a23f24200632d3cff0015b1c04e3f4838979bf83d795318e50
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Serialize and deserialize a struct as JSON with serde in Rust HOW
- 패키지
- serde_json 1.0.151
- 환경
- rust 1
- 생성일
- 2026-08-13T15:48:13Z
컨트랙트
- derive Serialize and Deserialize on a struct
- assert a struct round-trips through JSON unchanged
- assert a missing optional field defaults instead of failing
- assert a type mismatch produces an error rather than a panic
파일
- Cargo.lock
- Cargo.toml
- csx.json
- src/main.rs
오리진 시더
검증 영수증
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-13 · ed25519:a2ec939a4c60e243
- · CONTAINER_RUN · compile:SKIPPED · contract:FAIL · load:SKIPPED · resolve:PASS · cargo@1 · 2026-08-13 · ed25519:7da3f610facce8bf