Skip to main content

Module ops

Module ops 

Source
Expand description

Report types shared across command verticals.

A type lives here because more than one vertical consumes it; per-command outcome shapes deliberately do not. Field order is the serialized JSON key order and is contractual: the root Cargo.toml enables serde_json’s preserve_order, so reordering these fields would silently change rendered output.

Structs§

DeleteOutcome
The report a delete apply renders. Shared by the rules and exceptions verticals: each reports the same applied/deleted/failed/total shape, only the per-object entries differ (rule_id versus list_id).
ExportOutcome
A file-producing export: the encoded body and its counts.
ImportPlan
What plan_import computed and apply_import uploads. Shared by the rules and exceptions verticals: the plan, the re-encoded NDJSON, the in-file object count, and the objects --skip-existing removed.
ImportReport
The upload half of an import, before the caller adds the plan’s totals. Shared by the rules and exceptions verticals: both normalize Kibana’s import response to a succeeded count and an errors array.
MutationPlan
What a guarded mutation will do, shown in the guard banner.