pub struct CandidateScan {
pub identity: usize,
pub display_path: String,
pub findings: Vec<ScanFinding>,
pub scanned_bytes: usize,
}Expand description
Embedded consumers identify candidates independently of redacted display labels. Embedded consumers identify candidates independently of redacted display labels. Embedded consumers identify candidates independently of redacted display labels. What: Caller-owned identity plus safely displayable results from one exact candidate snapshot. Why: Matching pathname components may have identical masked labels; identity must remain independent of display text.
In TS you’d write (pseudocode):
type CandidateScan = { identity: number; displayPath: string; findings: ScanFinding[]; scannedBytes: number };Fields§
§identity: usizeOpaque identity chosen by the caller, not derived from any possibly redacted pathname.
display_path: StringLogical pathname with matching components masked and protocol-sensitive characters escaped.
findings: Vec<ScanFinding>Structured content/name matches and explicit processing failures.
scanned_bytes: usizeNumber of bytes inspected after applying the existing binary-prefix policy.
Trait Implementations§
Source§impl Clone for CandidateScan
impl Clone for CandidateScan
Source§impl Debug for CandidateScan
impl Debug for CandidateScan
impl Eq for CandidateScan
Source§impl PartialEq for CandidateScan
impl PartialEq for CandidateScan
impl StructuralPartialEq for CandidateScan
Auto Trait Implementations§
impl Freeze for CandidateScan
impl RefUnwindSafe for CandidateScan
impl Send for CandidateScan
impl Sync for CandidateScan
impl Unpin for CandidateScan
impl UnsafeUnpin for CandidateScan
impl UnwindSafe for CandidateScan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more