pub struct SensitiveUri<'a, P, Q> { /* private fields */ }
Expand description
Implementations§
source§impl<'a> SensitiveUri<'a, MakeIdentity, MakeIdentity>
impl<'a> SensitiveUri<'a, MakeIdentity, MakeIdentity>
sourcepub fn new(uri: &'a Uri) -> Self
pub fn new(uri: &'a Uri) -> Self
Constructs a new SensitiveUri
with nothing marked as sensitive.
source§impl<'a, P, Q> SensitiveUri<'a, P, Q>
impl<'a, P, Q> SensitiveUri<'a, P, Q>
sourcepub fn label<F>(
self,
label_marker: F,
greedy_label: Option<GreedyLabel>,
) -> SensitiveUri<'a, MakeLabel<F>, Q>
pub fn label<F>( self, label_marker: F, greedy_label: Option<GreedyLabel>, ) -> SensitiveUri<'a, MakeLabel<F>, Q>
Marks path segments as sensitive by providing predicate over the segment index.
See Label
for more info.
sourcepub fn query<F>(self, marker: F) -> SensitiveUri<'a, P, MakeQuery<F>>
pub fn query<F>(self, marker: F) -> SensitiveUri<'a, P, MakeQuery<F>>
Marks specific query string values as sensitive by supplying a predicate over the query string keys.
See Query
for more info.
Trait Implementations§
Auto Trait Implementations§
impl<'a, P, Q> Freeze for SensitiveUri<'a, P, Q>
impl<'a, P, Q> RefUnwindSafe for SensitiveUri<'a, P, Q>where
P: RefUnwindSafe,
Q: RefUnwindSafe,
impl<'a, P, Q> Send for SensitiveUri<'a, P, Q>
impl<'a, P, Q> Sync for SensitiveUri<'a, P, Q>
impl<'a, P, Q> Unpin for SensitiveUri<'a, P, Q>
impl<'a, P, Q> UnwindSafe for SensitiveUri<'a, P, Q>where
P: UnwindSafe,
Q: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.