#[non_exhaustive]pub enum UriPathPolicy {
Preserve,
Redact,
}Expand description
Controls whether URI paths are retained or replaced by a safe marker.
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
Retains the raw path spelling.
Redact
Replaces a non-empty path with a legal percent-encoded marker.
Trait Implementations§
Source§impl Clone for UriPathPolicy
impl Clone for UriPathPolicy
Source§fn clone(&self) -> UriPathPolicy
fn clone(&self) -> UriPathPolicy
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 UriPathPolicy
Source§impl Debug for UriPathPolicy
impl Debug for UriPathPolicy
Source§impl Default for UriPathPolicy
impl Default for UriPathPolicy
Source§fn default() -> UriPathPolicy
fn default() -> UriPathPolicy
Returns the “default value” for a type. Read more
impl Eq for UriPathPolicy
Source§impl PartialEq for UriPathPolicy
impl PartialEq for UriPathPolicy
impl StructuralPartialEq for UriPathPolicy
Auto Trait Implementations§
impl Freeze for UriPathPolicy
impl RefUnwindSafe for UriPathPolicy
impl Send for UriPathPolicy
impl Sync for UriPathPolicy
impl Unpin for UriPathPolicy
impl UnsafeUnpin for UriPathPolicy
impl UnwindSafe for UriPathPolicy
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