pub struct EntryRedactions { /* private fields */ }Expand description
Explicit salted entry commitments hidden from one admitted reader.
This is not a state authorization proof. Callers must first admit the governing Thread and apply the whole-tip and own-tier gate. Directory descent, hash reachability, listings and diffs then use the same predicate.
Implementations§
Source§impl EntryRedactions
impl EntryRedactions
Sourcepub fn extend_overrides(
&mut self,
entries: &[EntryVisibilityEntry],
can_read: impl Fn(&VisibilityTier) -> bool,
)
pub fn extend_overrides( &mut self, entries: &[EntryVisibilityEntry], can_read: impl Fn(&VisibilityTier) -> bool, )
Fold explicit overrides whose tier the caller’s authorized audience cannot read. For ancestor carry-forward, evaluate the override tier alone: the served state’s baseline is checked at the whole-tip gate.
Sourcepub fn extend(&mut self, other: &EntryRedactions)
pub fn extend(&mut self, other: &EntryRedactions)
Union restrictions from another endpoint, such as the base of a diff.
Sourcepub fn leaves(&self) -> &HashSet<ContentHash>
pub fn leaves(&self) -> &HashSet<ContentHash>
Opaque commitments used by super::PartialTree::project.
Sourcepub fn entry_visible(&self, tree: &Tree, index: usize) -> bool
pub fn entry_visible(&self, tree: &Tree, index: usize) -> bool
Whether one occurrence is visible. A denied directory must not be descended into, even to resolve a caller-supplied path or object hash. Invalid indices and malformed salted leaves fail closed.
Trait Implementations§
Source§impl Clone for EntryRedactions
impl Clone for EntryRedactions
Source§fn clone(&self) -> EntryRedactions
fn clone(&self) -> EntryRedactions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more