From caba1a6206758de7491e2d67b90928a4868ee099 Mon Sep 17 00:00:00 2001 From: Serhii Mamontov Date: Wed, 6 Mar 2024 23:20:02 +0200 Subject: [PATCH] fix(subscription): fix service response issue Fix issue because of which type of event has been swapped with debug flags field. --- src/dx/subscribe/result.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/dx/subscribe/result.rs b/src/dx/subscribe/result.rs index a393d901..4e197cef 100644 --- a/src/dx/subscribe/result.rs +++ b/src/dx/subscribe/result.rs @@ -209,7 +209,7 @@ pub struct Envelope { /// PubNub defined event type. #[cfg_attr( feature = "serde", - serde(rename = "f"), + serde(rename = "e"), serde(default = "Envelope::default_message_type") )] pub message_type: SubscribeMessageType, @@ -240,8 +240,6 @@ pub struct Envelope { pub channel: String, /// Event payload. - /// - /// Depending from #[cfg_attr(feature = "serde", serde(rename = "d"))] pub payload: EnvelopePayload,