pub struct ProcessorResult {
pub extracted_tags: HashMap<String, TagValue>,
pub warnings: Vec<String>,
pub next_processors: Vec<(ProcessorKey, ProcessorContext)>,
}
Expand description
Result returned by processor after processing binary data
This structure encapsulates everything a processor produces, including extracted tags, warnings, and instructions for further processing.
§ExifTool Reference
ExifTool processors modify the ExifTool object state and may trigger recursive processing. This structure captures those side effects explicitly.
Fields§
Tags extracted by the processor Maps tag names to their extracted values
warnings: Vec<String>
Warnings generated during processing Used for non-fatal issues like data corruption or unexpected formats
next_processors: Vec<(ProcessorKey, ProcessorContext)>
Additional processors to run for nested processing Each entry specifies a processor and the context it should use This enables ExifTool’s recursive SubDirectory processing
Implementations§
Source§impl ProcessorResult
impl ProcessorResult
Create processor result with extracted tags
Sourcepub fn add_warning(&mut self, warning: String)
pub fn add_warning(&mut self, warning: String)
Add a warning to the result
Sourcepub fn add_nested_processor(
&mut self,
key: ProcessorKey,
context: ProcessorContext,
)
pub fn add_nested_processor( &mut self, key: ProcessorKey, context: ProcessorContext, )
Add a nested processor for recursive processing