fcm_service/domain/
target.rs

1use serde::{Deserialize, Serialize};
2
3/// Represents the target of the FCM message (token, topic, or condition).
4#[derive(Serialize, Deserialize)]
5#[serde(rename_all = "lowercase")]
6pub enum Target {
7    Token(String),
8    Topic(String),
9    Condition(String),
10}
11
12impl Default for Target {
13    fn default() -> Self {
14        Self::Token("".to_string())
15    }
16}