#[non_exhaustive]pub enum UrlPathPolicy {
Preserve,
Redact,
}Expand description
Controls whether complete URL paths remain visible after redaction.
This policy does not affect URL userinfo, fragments, or recognized sensitive query values. Non-root paths are redacted by default because path segments frequently contain opaque identifiers or credentials.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Preserve
Preserves the complete URL path.
Redact
Replaces a non-root URL path with a fixed redaction marker.
Trait Implementations§
Source§impl Clone for UrlPathPolicy
impl Clone for UrlPathPolicy
Source§fn clone(&self) -> UrlPathPolicy
fn clone(&self) -> UrlPathPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UrlPathPolicy
Source§impl Debug for UrlPathPolicy
impl Debug for UrlPathPolicy
Source§impl Default for UrlPathPolicy
impl Default for UrlPathPolicy
Source§fn default() -> UrlPathPolicy
fn default() -> UrlPathPolicy
Returns the “default value” for a type. Read more
impl Eq for UrlPathPolicy
Source§impl PartialEq for UrlPathPolicy
impl PartialEq for UrlPathPolicy
impl StructuralPartialEq for UrlPathPolicy
Auto Trait Implementations§
impl Freeze for UrlPathPolicy
impl RefUnwindSafe for UrlPathPolicy
impl Send for UrlPathPolicy
impl Sync for UrlPathPolicy
impl Unpin for UrlPathPolicy
impl UnsafeUnpin for UrlPathPolicy
impl UnwindSafe for UrlPathPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more