From d3f5785506831719af6346c7346f1ebe466053b2 Mon Sep 17 00:00:00 2001 From: Alex Coats Date: Tue, 1 Aug 2023 09:16:34 -0400 Subject: [PATCH] serde with string --- sdk/src/types/api/core/response.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk/src/types/api/core/response.rs b/sdk/src/types/api/core/response.rs index cc0eeddfdf..a284dc045b 100644 --- a/sdk/src/types/api/core/response.rs +++ b/sdk/src/types/api/core/response.rs @@ -46,9 +46,13 @@ impl core::fmt::Display for InfoResponse { )] pub struct StatusResponse { pub is_healthy: bool, + #[cfg_attr(feature = "serde", serde(with = "crate::utils::serde::string"))] pub accepted_tangle_time: u64, + #[cfg_attr(feature = "serde", serde(with = "crate::utils::serde::string"))] pub relative_accepted_tangle_time: u64, + #[cfg_attr(feature = "serde", serde(with = "crate::utils::serde::string"))] pub confirmed_tangle_time: u64, + #[cfg_attr(feature = "serde", serde(with = "crate::utils::serde::string"))] pub relative_confirmed_tangle_time: u64, pub latest_committed_slot: SlotIndex, pub latest_finalized_slot: SlotIndex,