aboutsummaryrefslogtreecommitdiff
path: root/src/message/handshake/clientinitack.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/message/handshake/clientinitack.rs')
-rw-r--r--src/message/handshake/clientinitack.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/message/handshake/clientinitack.rs b/src/message/handshake/clientinitack.rs
index f881113..a259f9c 100644
--- a/src/message/handshake/clientinitack.rs
+++ b/src/message/handshake/clientinitack.rs
@@ -13,6 +13,8 @@ pub struct ClientInitAck {
/// List of VariantMaps of info on available backends
pub storage_backends: VariantList,
/// List of VariantMaps of info on available authenticators
+ #[cfg(feature = "authenticators")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "authenticators")))]
pub authenticators: VariantList,
/// List of supported extended features
pub feature_list: Vec<String>,
@@ -34,6 +36,7 @@ impl HandshakeSerialize for ClientInitAck {
"StorageBackends".to_string(),
Variant::VariantList(self.storage_backends.clone()),
);
+ #[cfg(feature = "authenticators")]
values.insert(
"Authenticators".to_string(),
Variant::VariantList(self.authenticators.clone()),
@@ -56,6 +59,7 @@ impl From<VariantMap> for ClientInitAck {
input.get("StorageBackends").unwrap(),
Variant::VariantList
),
+ #[cfg(feature = "authenticators")]
authenticators: match_variant!(
input.get("Authenticators").unwrap(),
Variant::VariantList