Skip to content

Commit

Permalink
serde with string
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Coats committed Aug 1, 2023
1 parent 88ea920 commit d3f5785
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdk/src/types/api/core/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d3f5785

Please sign in to comment.