Skip to content

Commit

Permalink
πŸ”€πŸš‘ Merge: pull request #11 from Rinrin0413/dev
Browse files Browse the repository at this point in the history
# v0.5.1 (hotfix)

## Fixes

- Decoding error when the property `ts` of the object "badges" was not present
  • Loading branch information
Rinrin0413 authored Nov 30, 2023
2 parents cf953fe + 8ab6617 commit ca322b5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v0.5.1 (hotfix) 2023-12-01

## Fixes

- Decoding error when the property `ts` of the object "badges" was not present

# v0.5.0 2023-11-30

## Fixes
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tetr_ch"
description = "A library for the TETRA CHANNEL API."
version = "0.5.0"
version = "0.5.1"
authors = ["Rinrin.rs <rinrin0413.valley@gmail.com>"]
license-file = "LICENSE"
repository = "https://github.com/Rinrin0413/tetr-ch-rs.git"
Expand Down
6 changes: 5 additions & 1 deletion src/model/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,11 @@ pub struct Badge {
///
/// Why it uses `deserialize_with` attribute?
/// See [this issue](https://github.com/Rinrin0413/tetr-ch-rs/issues/4).
#[serde(rename = "ts", deserialize_with = "deserialize_from_non_str_to_none")]
#[serde(
rename = "ts",
deserialize_with = "deserialize_from_non_str_to_none",
default
)]
pub received_at: Option<String>,
/// The badge's group, if specified.
///
Expand Down

0 comments on commit ca322b5

Please sign in to comment.