Skip to main content

qubit_redact/output/
redaction_completion.rs

1// =============================================================================
2//    Copyright (c) 2026 Haixing Hu.
3//
4//    SPDX-License-Identifier: Apache-2.0
5//
6//    Licensed under the Apache License, Version 2.0.
7// =============================================================================
8//! Completion state shared by redaction operations.
9
10/// Describes whether a redaction operation produced all required safe output.
11#[derive(Debug, Clone, Copy, PartialEq, Eq)]
12pub enum RedactionCompletion {
13    /// All input was processed and its complete safe output fit the budget.
14    ///
15    /// An ordinary sensitivity mask is a complete result, not truncation.
16    Complete,
17    /// Input or output was omitted, but non-empty safe substitute text was
18    /// emitted.
19    Truncated,
20    /// The shared output budget could not retain a complete safe replacement.
21    Exhausted,
22}