1use myko_macros::Eventable;
2use partially::Partial;
3use serde::{Deserialize, Serialize};
4
5#[derive(Partial, PartialEq, Eventable, Clone, Serialize, Deserialize, Debug)]
6#[serde(rename_all = "camelCase")]
7#[partially(derive(Clone, Serialize, Deserialize, Default))]
8pub struct Target {
9 pub id: String,
10 pub hash: String,
11 pub name: String,
12 pub action_ids: Vec<String>,
13 pub emitter_ids: Vec<String>,
14 pub sub_targets: Vec<String>,
15 pub parent_targets: Vec<String>,
16 pub service_id: String,
17 pub bg_color: String,
18 pub fg_color: String,
19 pub category: String,
20 pub root_level: bool,
21}