Skip to main content

qubit_redact/uri/
uri_path_policy.rs

1// =============================================================================
2//    Copyright (c) 2026 Haixing Hu.
3//
4//    SPDX-License-Identifier: Apache-2.0
5//
6//    Licensed under the Apache License, Version 2.0.
7// =============================================================================
8//! Path handling choices for URI redaction.
9
10/// Controls whether URI paths are retained or replaced by a safe marker.
11#[must_use]
12#[non_exhaustive]
13#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
14pub enum UriPathPolicy {
15    /// Retains the raw path spelling.
16    #[default]
17    Preserve,
18    /// Replaces a non-empty path with a legal percent-encoded marker.
19    Redact,
20}