• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rj76 / fcm-rust / 9243346163

26 May 2024 12:43PM UTC coverage: 4.501% (-0.7%) from 5.242%
9243346163

Pull #10

github

web-flow
Merge dc15c8925 into cd7323ced
Pull Request #10: Major update

284 of 37868 branches covered (0.75%)

Branch coverage included in aggregate %.

79 of 365 new or added lines in 22 files covered. (21.64%)

8735 existing lines in 136 files now uncovered.

15848 of 320575 relevant lines covered (4.94%)

234.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/android/android_config.rs
1
use serde::Serialize;
2
use serde_json::Value;
3

4
use super::{
5
    android_fcm_options::AndroidFcmOptions,
6
    android_message_priority::AndroidMessagePriority,
7
    android_notification::AndroidNotification,
8
};
9

NEW
10
#[derive(Debug, Default, Serialize)]
×
11
/// <https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages?authuser=0#androidconfig>
12
pub struct AndroidConfig {
13
    /// An identifier of a group of messages that can be collapsed, so that only the last message gets
14
    /// sent when delivery can be resumed.
15
    #[serde(skip_serializing_if = "Option::is_none")]
UNCOV
16
    pub collapse_key: Option<String>,
×
17

18
    /// Message priority.
19
    #[serde(skip_serializing_if = "Option::is_none")]
UNCOV
20
    pub priority: Option<AndroidMessagePriority>,
×
21

22
    /// How long (in seconds) the message should be kept in FCM storage if the device is offline.
23
    /// Duration format: <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf?authuser=0#google.protobuf.Duration>
24
    #[serde(skip_serializing_if = "Option::is_none")]
UNCOV
25
    pub ttl: Option<String>,
×
26

27
    /// Package name of the application where the registration token must match in order to receive the message.
28
    #[serde(skip_serializing_if = "Option::is_none")]
UNCOV
29
    pub restricted_package_name: Option<String>,
×
30

31
    /// Arbitrary key/value payload.
32
    #[serde(skip_serializing_if = "Option::is_none")]
UNCOV
33
    pub data: Option<Value>,
×
34

35
    /// Notification to send to android devices.
36
    #[serde(skip_serializing_if = "Option::is_none")]
UNCOV
37
    pub notification: Option<AndroidNotification>,
×
38

39
    /// Options for features provided by the FCM SDK for Android.
40
    #[serde(skip_serializing_if = "Option::is_none")]
UNCOV
41
    pub fcm_options: Option<AndroidFcmOptions>,
×
42

43
    /// If set to true, messages will be allowed to be delivered to the app while the device is in direct boot mode.
44
    #[serde(skip_serializing_if = "Option::is_none")]
UNCOV
45
    pub direct_boot_ok: Option<bool>,
×
46
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc