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

rj76 / fcm-rust / 8128893026

03 Mar 2024 08:21AM UTC coverage: 5.216% (+0.02%) from 5.2%
8128893026

Pull #4

github

web-flow
Merge 2128a958a into a8babd228
Pull Request #4: feat: build new api

621 of 32863 branches covered (1.89%)

Branch coverage included in aggregate %.

108 of 396 new or added lines in 21 files covered. (27.27%)

252 existing lines in 48 files now uncovered.

15129 of 269097 relevant lines covered (5.62%)

202.27 hits per line

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

0.0
/src/android/light_settings.rs
1
use serde::Serialize;
2

3
use super::color::{Color, ColorInternal};
4

NEW
5
#[derive(Serialize, Debug)]
×
6
/// https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages?authuser=0#LightSettings
7
pub(crate) struct LightSettingsInternal {
8
    /// Set color of the LED with google.type.Color.
NEW
9
    color: ColorInternal,
×
10

11
    /// Along with light_off_duration, define the blink rate of LED flashes
12
    /// Duration format: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf?authuser=0#google.protobuf.Duration
13
    light_on_duration: String,
14

15
    /// Along with light_on_duration, define the blink rate of LED flashes.
16
    /// Duration format: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf?authuser=0#google.protobuf.Duration
NEW
17
    light_off_duration: String,
×
18
}
19

NEW
20
#[derive(Debug, Default)]
×
21
/// https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages?authuser=0#LightSettings
22
pub struct LightSettings {
23
    /// Set color of the LED with google.type.Color.
NEW
24
    pub color: Color,
×
25

26
    /// Along with light_off_duration, define the blink rate of LED flashes
27
    /// Duration format: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf?authuser=0#google.protobuf.Duration
NEW
28
    pub light_on_duration: String,
×
29

30
    /// Along with light_on_duration, define the blink rate of LED flashes.
31
    /// Duration format: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf?authuser=0#google.protobuf.Duration
NEW
32
    pub light_off_duration: String,
×
33
}
34

35
impl LightSettings {
NEW
36
    pub(crate) fn finalize(self) -> LightSettingsInternal {
×
NEW
37
        LightSettingsInternal {
×
NEW
38
            color: self.color.finalize(),
×
NEW
39
            light_on_duration: self.light_on_duration,
×
NEW
40
            light_off_duration: self.light_off_duration,
×
41
        }
NEW
42
    }
×
43
}
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