| 513 | |
| 514 | impl Serialize for ModuleDeclarations { |
| 515 | fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error> { |
| 516 | let ModuleDeclarations { |
| 517 | _version_marker, |
| 518 | functions, |
| 519 | data_objects, |
| 520 | names: _, |
| 521 | } = self; |
| 522 | |
| 523 | let mut state = s.serialize_struct("ModuleDeclarations", 4)?; |
| 524 | state.serialize_field("_version_marker", _version_marker)?; |
| 525 | state.serialize_field("functions", functions)?; |
| 526 | state.serialize_field("data_objects", data_objects)?; |
| 527 | state.end() |
| 528 | } |
| 529 | } |
| 530 | |
| 531 | enum ModuleDeclarationsField { |