Skip to content

Commit a140d37

Browse files
author
Devdutt Shenoi
authored
fix: default value when not set (#1127)
Fixes #1128
1 parent 2477b20 commit a140d37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hottier.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ pub const CURRENT_HOT_TIER_VERSION: &str = "v2";
5757
pub struct StreamHotTier {
5858
pub version: Option<String>,
5959
pub size: String,
60+
#[serde(default)]
6061
pub used_size: String,
62+
#[serde(default)]
6163
pub available_size: String,
6264
#[serde(skip_serializing_if = "Option::is_none")]
6365
pub oldest_date_time_entry: Option<String>,

0 commit comments

Comments
 (0)