File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change
1
+ # v0.5.1 (hotfix) 2023-12-01
2
+
3
+ ## Fixes
4
+
5
+ - Decoding error when the property ` ts ` of the object "badges" was not present
6
+
1
7
# v0.5.0 2023-11-30
2
8
3
9
## Fixes
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " tetr_ch"
3
3
description = " A library for the TETRA CHANNEL API."
4
- version = " 0.5.0 "
4
+ version = " 0.5.1 "
5
5
authors = [" Rinrin.rs <rinrin0413.valley@gmail.com>" ]
6
6
license-file = " LICENSE"
7
7
repository = " https://github.com/Rinrin0413/tetr-ch-rs.git"
Original file line number Diff line number Diff line change @@ -733,7 +733,11 @@ pub struct Badge {
733
733
///
734
734
/// Why it uses `deserialize_with` attribute?
735
735
/// See [this issue](https://github.com/Rinrin0413/tetr-ch-rs/issues/4).
736
- #[ serde( rename = "ts" , deserialize_with = "deserialize_from_non_str_to_none" ) ]
736
+ #[ serde(
737
+ rename = "ts" ,
738
+ deserialize_with = "deserialize_from_non_str_to_none" ,
739
+ default
740
+ ) ]
737
741
pub received_at : Option < String > ,
738
742
/// The badge's group, if specified.
739
743
///
You canβt perform that action at this time.
0 commit comments