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> 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