Skip to content

Commit

Permalink
Improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Barber committed Sep 20, 2022
1 parent efe4d4d commit 80d519e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions rust-runtime/aws-smithy-http-server/src/logging/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ where

/// An extension trait for applying [`InstrumentLayer`] to all operations.
pub trait InstrumentExt: Pluggable<InstrumentPlugin> {
/// Applies [`InstrumentLayer`] to all operations. See [`InstrumentOperation`](super::InstrumentOperation) for more
/// information.
/// Applies an [`InstrumentLayer`] to all operations which respects the [@sensitive] trait given on the input and
/// output models. See [`InstrumentOperation`](super::InstrumentOperation) for more information.
///
/// [@sensitive]: https://awslabs.github.io/smithy/2.0/spec/documentation-traits.html#sensitive-trait
fn instrument(self) -> Self::Output
where
Self: Sized,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub const REDACTED: &str = "{redacted}";
pub trait Sensitivity {
/// The [`MakeDebug`] and [`MakeDisplay`] for the request [`HeaderMap`] and [`Uri`].
type RequestFmt: for<'a> MakeDebug<&'a HeaderMap> + for<'a> MakeDisplay<&'a Uri>;
/// The [`MakeDebug`] and [`MakeDisplay`] for the response [`HeaderMap`] and [`Uri`].
/// The [`MakeDebug`] and [`MakeDisplay`] for the response [`HeaderMap`] and [`StatusCode`].
type ResponseFmt: for<'a> MakeDebug<&'a HeaderMap> + MakeDisplay<StatusCode>;

/// Returns the [`RequestFmt`](Sensitivity::RequestFmt).
Expand Down

0 comments on commit 80d519e

Please sign in to comment.