pub enum ReasonCode {
Show 17 variants
VerdictClean,
VerdictRecommendedVersionNewer,
VerdictAbandoned,
VerdictLowTrust,
VerdictDegradedStale,
VerdictHasRemediation,
VerdictKevListed,
VerdictRansomwareListed,
VerdictExploitationCritical,
VerdictMalicious,
VerdictObfuscated,
VerdictDenyList,
ClientNetworkUnreachable,
ClientAuthFailed,
ClientBearerMissing,
ClientRateLimited,
RemediationNotFound,
}Expand description
Canonical 15-value ReasonCode registry — Rust mirror of sdk-js v0.4.1
dist/reason-codes.js. Drift = CI failure.
Variants§
VerdictClean
VerdictRecommendedVersionNewer
VerdictAbandoned
VerdictLowTrust
VerdictDegradedStale
Server-side substrate freshness — substance-derived tier preserved,
reason overridden to surface staleness. Distinct from client-side
LIVE_DEGRADED cache-fallback (extension status bar; Cli7 offline mode).
VerdictHasRemediation
VerdictKevListed
VerdictRansomwareListed
CLEANLIB-176: package named in ransomware campaigns
(CVE_FINDING_ON_RANSOMWARE source projection). Semantically distinct
from KEV — a CVE can be ransomware-linked without being CISA-KEV-listed
and vice-versa; conflating them defeats the 176 differentiation goal.
Cross-SDK + Threat ratification PENDING (see CLEANLIB-176 comment 658233).
VerdictExploitationCritical
VerdictMalicious
CLEANLIB-176: confirmed/likely-malicious package (MALICIOUS_TRIAGE
source projection — typosquat / backdoor / protestware). Distinct from
VERDICT_EXPLOITATION_CRITICAL (a CVE being actively exploited):
malicious means remove + audit + rotate, not upgrade.
Cross-SDK + Threat ratification PENDING (see CLEANLIB-176 comment 658233).
VerdictObfuscated
VerdictDenyList
ClientNetworkUnreachable
ClientAuthFailed
ClientBearerMissing
ClientRateLimited
RemediationNotFound
Implementations§
Trait Implementations§
Source§impl Clone for ReasonCode
impl Clone for ReasonCode
Source§fn clone(&self) -> ReasonCode
fn clone(&self) -> ReasonCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more