From 0e4bfc2f2bdf09da3ba4c86cb656386ef973593f Mon Sep 17 00:00:00 2001 From: Luke Bakken Date: Fri, 27 Jun 2025 08:15:23 -0700 Subject: [PATCH] Make all client properties optional Fixes #56 Originally found by @tomtaoran --- src/responses.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/responses.rs b/src/responses.rs index f18c1a9..9aa3437 100644 --- a/src/responses.rs +++ b/src/responses.rs @@ -576,14 +576,14 @@ pub struct ClientProperties { pub struct ClientCapabilities { pub authentication_failure_close: bool, #[serde(rename(deserialize = "basic.nack"))] - pub basic_nack: bool, + pub basic_nack: Option, #[serde(rename(deserialize = "connection.blocked"))] - pub connection_blocked: bool, + pub connection_blocked: Option, #[serde(rename(deserialize = "consumer_cancel_notify"))] - pub consumer_cancel_notify: bool, + pub consumer_cancel_notify: Option, #[serde(rename(deserialize = "exchange_exchange_bindings"))] - pub exchange_to_exchange_bindings: bool, - pub publisher_confirms: bool, + pub exchange_to_exchange_bindings: Option, + pub publisher_confirms: Option, } #[derive(Debug, Deserialize, Clone)]