qubit_validator/report/skip_reason.rs
1// =============================================================================
2// Copyright (c) 2025 - 2026 Haixing Hu.
3//
4// SPDX-License-Identifier: Apache-2.0
5//
6// Licensed under the Apache License, Version 2.0.
7// =============================================================================
8
9//! Reasons for skipping a validation occurrence.
10
11/// Why a rule did not run.
12///
13/// # Examples
14///
15/// ```
16/// use qubit_validator::SkipReason;
17///
18/// let reason = SkipReason::MissingOptional;
19/// assert_eq!(reason, SkipReason::MissingOptional);
20/// ```
21#[derive(Clone, Copy, Debug, Eq, PartialEq)]
22#[non_exhaustive]
23pub enum SkipReason {
24 /// The target was explicitly absent and optional.
25 MissingOptional,
26 /// A required prerequisite had already failed.
27 FailedPrerequisite,
28}