pub enum RedactionUndoClass<'a> {
Purge {
redaction_id: &'a ContentHash,
},
Redact {
blob: &'a ContentHash,
state: &'a StateId,
path: &'a str,
},
Other,
}Expand description
How a record participates in undo’s redaction-safety preflight.
Returned by OpRecord::redaction_undo_class so the CLI preflight reads
the classification off the variant instead of re-deriving it from an
exhaustive match (heddle#500). The borrowed fields are exactly what the
CLI needs to build its refusal messages and redaction_is_purged lookups.
Variants§
Purge
Purge — irreversible; undo of the whole chain is refused.
Fields
§
redaction_id: &'a ContentHashRedact
Redact — reversible but gated: undo re-exposes hidden content, so it
runs only with --allow-redact-undo, and is refused outright if the
blob bytes have since been purged.
Other
Every other record is irrelevant to redaction-undo safety.
Trait Implementations§
Source§impl<'a> Clone for RedactionUndoClass<'a>
impl<'a> Clone for RedactionUndoClass<'a>
Source§fn clone(&self) -> RedactionUndoClass<'a>
fn clone(&self) -> RedactionUndoClass<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for RedactionUndoClass<'a>
Source§impl<'a> Debug for RedactionUndoClass<'a>
impl<'a> Debug for RedactionUndoClass<'a>
impl<'a> Eq for RedactionUndoClass<'a>
Source§impl<'a> PartialEq for RedactionUndoClass<'a>
impl<'a> PartialEq for RedactionUndoClass<'a>
impl<'a> StructuralPartialEq for RedactionUndoClass<'a>
Auto Trait Implementations§
impl<'a> Freeze for RedactionUndoClass<'a>
impl<'a> RefUnwindSafe for RedactionUndoClass<'a>
impl<'a> Send for RedactionUndoClass<'a>
impl<'a> Sync for RedactionUndoClass<'a>
impl<'a> Unpin for RedactionUndoClass<'a>
impl<'a> UnsafeUnpin for RedactionUndoClass<'a>
impl<'a> UnwindSafe for RedactionUndoClass<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more