Skip to main content

Module types

Module types 

Source
Expand description

Type definitions for XML element representation.

Uses serde_json::Value for flexible representation matching the TypeScript structure:

  • Object with keys: element names, @attr for attributes, #text for text content, ?xml for declaration
  • Values: string, nested object, or array of objects/strings

Structs§

BuildDisassembledFileOptions
Options for building a single disassembled file.
BuildDisassembledFilesOptions
Options for building disassembled files from a source file.
DecomposeRule
Rule for decomposing a nested tag when using grouped-by-tag strategy. E.g. write each <objectPermissions> to its own file, or group <fieldPermissions> by object.
LeafWriteOptions
LeafWriteParams
Parameters for writing leaf content.
MultiLevelConfig
Persisted config for multi-level reassembly (stored as .multi_level.json in the disassembly root).
MultiLevelRule
Rule for multi-level disassembly: which files to further disassemble and how.
SidecarSpec
A rule that extracts an XML element’s text content to a typed companion (“sidecar”) file during disassembly, and injects it back during reassembly.
UnifiedParseResult
Result from unified element parsing.
XmlElementParams
Parameters for parsing an element during disassembly.

Type Aliases§

XmlElement
XmlElement is a flexible representation of XML - equivalent to TypeScript’s XmlElement type. Uses serde_json::Value for compatibility with quickxml_to_serde output.
XmlElementArrayMap
Map of tag name to array of elements.