From 529d698466974a88e2dd00754b9513639eb55232 Mon Sep 17 00:00:00 2001 From: i10416 Date: Sat, 9 Mar 2024 15:49:24 +0900 Subject: [PATCH] fix: appSigner is sometimes absent --- Cargo.toml | 2 +- src/topic.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0c6bfe3..804c5a7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "firebase-messaging-rs" -version = "0.8.1" +version = "0.8.2" authors = [ "Yoichiro ITO " ] diff --git a/src/topic.rs b/src/topic.rs index 12cd655..2137391 100644 --- a/src/topic.rs +++ b/src/topic.rs @@ -171,7 +171,7 @@ pub struct TopicInfoResponse { pub platform: String, /// example: "1a2bc3d4e5" #[serde(rename = "appSigner")] - pub app_signer: String, + pub app_signer: Option, /// If and only if user specifies `details` flag on request, this field may `Some`. pub rel: Option, }