Struct aws_smithy_http_server::instrumentation::sensitivity::uri::Query
source · pub struct Query<'a, F> { /* private fields */ }
Expand description
A wrapper around a query string &str
which modifies the behavior of Display
. Specific query string
values are marked as sensitive by providing predicate over the keys. This accommodates the httpQuery trait and
the httpQueryParams trait.
The Display
implementation will respect the unredacted-logging
flag.
§Example
// Query string value with key "name" is redacted
let uri = Query::new(&uri, |x| QueryMarker { key: false, value: x == "name" } );
println!("{uri}");
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, F> Freeze for Query<'a, F>where
F: Freeze,
impl<'a, F> RefUnwindSafe for Query<'a, F>where
F: RefUnwindSafe,
impl<'a, F> Send for Query<'a, F>where
F: Send,
impl<'a, F> Sync for Query<'a, F>where
F: Sync,
impl<'a, F> Unpin for Query<'a, F>where
F: Unpin,
impl<'a, F> UnwindSafe for Query<'a, F>where
F: 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.