Skip to main content

Crate gaze_types

Crate gaze_types 

Source

Modules§

inspection
Provider-neutral, bounded inspection values.

Structs§

AmbiguityRecord
Structured metadata describing an ambiguity outcome.
Candidate
Candidate PII span emitted by a recognizer before final conflict resolution.
CodecAuditRow
Metadata-only audit row emitted by a document codec.
CodecCapabilitySet
Orthogonal document codec capabilities delivered or advertised by a codec.
CollisionMembership
Collision-family membership metadata for one recognizer.
DetectContext
Context supplied to recognizers during detection.
Detection
A detected span and its class/source metadata.
DictionaryBundle
Value-only dictionary bundle shared with recognizers.
DictionaryEntry
Value-only dictionary entry; compiled automatons live outside gaze-types.
DictionaryStats
Dictionary metadata used for diagnostics and tests.
DocumentExtension
Signed document-context metadata carried inside a session snapshot envelope.
DocumentExtensionBuilder
Builder for DocumentExtension that requires signed integrity-binding fields.
EmittedTokenSpan
A replacement emitted by the pseudonymization pipeline.
LeakReport
A suspected missed PII span reported by a SafetyNet.
LeakReportStats
Aggregate leak report statistics.
LeakSuspect
Suspected leak reported by an observer-only safety net.
LocaleBasisParseError
Locale-basis parsing error.
LocaleChain
Ordered locale fallback chain.
LosingCandidate
A candidate recognizer/class pair that lost ambiguity resolution.
Manifest
Set of emitted token spans for one clean text segment.
PiiClassAudit
Audit-canonical form of PiiClass.
RecognizerRuntimeError
Runtime failure raised by a recognizer or detector backend during detection.
RedactionEntry
One row of redaction metadata emitted to a RedactionLogger.
RestoreTelemetry
RestoredText
RulepackDict
Dictionary declared by a rulepack.
SafetyNetContext
Context passed to a privacy safety net.
SafetyTierParseError
Safety-tier parsing error.

Enums§

Action
Disposition applied to a detected PII span.
AmbiguityReason
Closed set of ambiguity outcomes recorded by the audit side-channel.
CleanDocument
The pseudonymized output from Pipeline::redact.
ConflictTier
Conflict resolution tier that selected or rejected a candidate.
DetectError
Caller-visible recognizer detection failure.
DictionaryLoadError
Error raised when constructing invalid dictionary entries.
DictionarySource
Source of a dictionary entry.
DocumentExtensionError
Errors returned while building a DocumentExtension.
DocumentKind
Source document kind for metadata-only audit logging.
ExtractionDensityPolicy
Per-codec declaration for text extraction density checks.
FallbackReason
Safety-net fallback reason recorded in metadata-only audit rows.
LeakKind
The category of a suspected missed PII span.
LeakReportTelemetry
Bytes-free telemetry emitted by safety-net orchestration.
LocaleBasis
Interpretation of a rulepack recognizer’s locale metadata.
LocaleError
Locale parsing error.
LocaleTag
Locale tag recognized by policy and recognizers.
OpenAiPrivateLabel
Closed set of upstream OpenAI Privacy Filter labels accepted by Gaze.
PiiClass
The category of a detected PII span.
RawDocument
The input document submitted for pseudonymization.
RedactionLogError
Closed error set for redaction log sinks.
Regionphone-parser
Regions supported by national phone validators.
RestoreDecision
RestorePolicy
SafetyNetError
Exhaustive, closed error set for safety-net execution.
SafetyNetPiiClass
Closed safety-net PII vocabulary before mapping into PiiClass.
SafetyTier
Rulepack recognizer activation tier.
TextOrigin
Provenance of text extracted from a document or transcript source.
ValidatorFailReason
Closed validator failure reasons recorded by audit metadata.
ValidatorKind
Closed set of validator implementations used by validator-backed recognizers.
ValidatorKindParseError
Error returned when a rulepack names a validator unsupported by this build.
ValidatorOutcome
Typed validator outcome used by the pre-resolver validator-veto phase.
Value
Minimal structured value representation that avoids a serde_json dependency.

Constants§

BUILTIN_CLASS_NAMES
Built-in class labels in stable display order.
RESERVED_BUNDLED_FAMILIES
Family names reserved for bundled collision-policy rulepacks.
RESTORE_PHASE_FRESH_PII_SCAN
RESTORE_PHASE_MANIFEST_BYPASS_SCAN
RESTORE_PHASE_MANIFEST_LOOKUP
RESTORE_PHASE_UNKNOWN_TOKEN_SCAN

Traits§

Detector
Shared detector contract for text-only PII detection.
Recognizer
Shared recognizer contract for locale-aware PII candidates.
RedactionLogger
Trait for audit sinks that receive redaction metadata.
SafetyNet
Observer-only post-clean check (Pass 3 in the detection pipeline).