#[non_exhaustive]pub enum CargoAllowErrorKind {
Usage,
InvalidConfig,
InvalidPolicy,
Inventory,
Scan,
PolicyViolation,
Artifact,
Internal,
Unknown,
}Expand description
Structured kind for CargoAllowError, enabling programmatic consumers
(CI tooling, sibling tools) to branch on error class instead of
string-matching the rendered message.
This enum is #[non_exhaustive] so new kinds can be added without a
breaking change for downstream library consumers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Usage
CLI usage error (bad flags, conflicting arguments).
InvalidConfig
Invalid or missing configuration file/values.
InvalidPolicy
Invalid policy ledger (validation failure, parse error, unknown field).
Inventory
Inventory discovery failure (git error, unreadable directory).
Scan
Scan failure (read error, parse error in a source file).
PolicyViolation
Policy violation (check/diff gate failed).
Artifact
Artifact or write failure (receipt rendering, policy write).
Internal
Internal invariant failure (should not happen).
Unknown
Unclassified — preserved for backward compatibility with new().
Implementations§
Source§impl CargoAllowErrorKind
impl CargoAllowErrorKind
Sourcepub const ALL: &[Self]
pub const ALL: &[Self]
All error kinds currently defined by this version.
The enum is non-exhaustive; callers must still handle future kinds.
Trait Implementations§
Source§impl Clone for CargoAllowErrorKind
impl Clone for CargoAllowErrorKind
Source§fn clone(&self) -> CargoAllowErrorKind
fn clone(&self) -> CargoAllowErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more