Skip to content

Commit eeee3ac

Browse files
author
Devdutt Shenoi
committed
Merge remote-tracking branch 'origin/main' into hottier-perf
2 parents 2cdf172 + a140d37 commit eeee3ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/hottier.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@ pub struct StreamHotTier {
5858
pub version: Option<String>,
5959
#[serde(with = "crate::utils::human_size")]
6060
pub size: u64,
61-
#[serde(with = "crate::utils::human_size")]
61+
#[serde(default, with = "crate::utils::human_size")]
6262
pub used_size: u64,
63-
#[serde(with = "crate::utils::human_size")]
63+
#[serde(default, with = "crate::utils::human_size")]
6464
pub available_size: u64,
65+
#[serde(skip_serializing_if = "Option::is_none")]
6566
pub oldest_date_time_entry: Option<String>,
6667
}
6768

0 commit comments

Comments
 (0)