shuriken-api-types 0.3.0

Public API payload types for the Shuriken platform
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase", tag = "type")]
pub enum AutomationEvent {
    #[serde(rename = "taskUpdate")]
    TaskUpdate { task_id: String, user_id: String },
    #[serde(rename = "regionalStats")]
    RegionalStats {
        task_id: String,
        region_id: String,
        user_id: String,
    },
}