open_lark/event/
context.rs1use std::collections::HashMap;
2
3use serde::{Deserialize, Serialize};
4use serde_json::Value;
5
6#[derive(Debug, Serialize, Deserialize)]
7pub struct EventContext {
8 pub ts: Option<String>,
9 pub uuid: Option<String>,
10 pub token: Option<String>,
11 #[serde(rename = "type")]
12 pub type_: Option<String>,
13 pub schema: Option<String>,
14 pub header: Option<EventHeader>,
15 pub event: HashMap<String, Value>,
16}
17
18#[derive(Debug, Serialize, Deserialize)]
20pub struct EventHeader {
21 pub event_id: Option<String>,
23 pub event_type: Option<String>,
25 pub create_time: Option<String>,
27 pub token: Option<String>,
29 pub app_id: Option<String>,
31 pub tenant_key: Option<String>,
33}