onesignal_rust_api/models/journey_message_stats.rs
1/*
2 * OneSignal
3 *
4 * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5 *
6 * Contact: devrel@onesignal.com
7 * Generated by: https://openapi-generator.tech
8 */
9
10/// JourneyMessageStats : Delivery stats for a message-sending node. Present only on send_push, send_email, send_sms, send_iam, and send_webhook nodes. The keys inside totals depend on the node's channel.
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct JourneyMessageStats {
16 /// All-time totals for this node, keyed by channel-specific stat name.
17 #[serde(rename = "totals", skip_serializing_if = "Option::is_none")]
18 pub totals: Option<::std::collections::HashMap<String, f32>>,
19}
20
21impl JourneyMessageStats {
22 /// Delivery stats for a message-sending node. Present only on send_push, send_email, send_sms, send_iam, and send_webhook nodes. The keys inside totals depend on the node's channel.
23 pub fn new() -> JourneyMessageStats {
24 JourneyMessageStats {
25 totals: None,
26 }
27 }
28}
29
30