pub struct DisassembleOptions {
pub input: PathBuf,
pub input_format: Option<Format>,
pub output_dir: Option<PathBuf>,
pub output_format: Option<Format>,
pub unique_id: Option<String>,
pub pre_purge: bool,
pub post_purge: bool,
pub ignore_path: Option<PathBuf>,
}Expand description
Options controlling disassembly.
Fields§
§input: PathBufPath to the input. May be either a single config file or a
directory; when it is a directory, every matching file under it
is disassembled in place (see also ignore_path).
input_format: Option<Format>Format to read the input as. If None, the format is inferred
from each file’s extension.
output_dir: Option<PathBuf>Directory to write split files into. Only meaningful when
input is a single file; for directory inputs each file’s
output goes into a sibling directory named after that file’s
stem (mirroring the XML disassembler’s behavior).
output_format: Option<Format>Format to write split files in. Defaults to input_format.
unique_id: Option<String>For array roots, name array-element files using the value of this field if present on each element (must be a scalar).
pre_purge: boolIf true, remove the contents of the output directory before writing.
post_purge: boolIf true, delete the input file (or input directory) after disassembling. For directory inputs the entire directory is removed only if every file in it was successfully disassembled.
ignore_path: Option<PathBuf>Optional path to a .gitignore-style ignore file that filters
which files are processed when input is a directory. Pass
None to use DEFAULT_IGNORE_FILENAME in the input directory
(silently absent if the file does not exist). Ignored entirely
for single-file inputs.
Implementations§
Trait Implementations§
Source§impl Clone for DisassembleOptions
impl Clone for DisassembleOptions
Source§fn clone(&self) -> DisassembleOptions
fn clone(&self) -> DisassembleOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more