Point to 'mtls::Certificate' in mTLS config docs.

This commit is contained in:
Sergio Benitez 2021-07-20 14:56:28 -07:00
parent cc0621626b
commit 534f43c223
1 changed files with 3 additions and 0 deletions

View File

@ -153,6 +153,9 @@ pub struct TlsConfig {
/// rocket::custom(config)
/// }
/// ```
///
/// Once mTLS is configured, the [`mtls::Certificate`](crate::mtls::Certificate)
/// request guard can be used to retrieve client certificates in routes.
#[derive(PartialEq, Debug, Clone, Deserialize, Serialize)]
#[cfg(feature = "mtls")]
#[cfg_attr(nightly, doc(cfg(feature = "mtls")))]