mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-23 18:01:21 +01:00
13 lines
331 B
Rust
13 lines
331 B
Rust
use serde::{Deserialize, Serialize};
|
|
use ts_rs::TS;
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize, Default, TS)]
|
|
#[serde(default, rename_all = "camelCase")]
|
|
#[ts(export, export_to = "sse.ts")]
|
|
pub struct ServerSentEvent {
|
|
pub event_type: String,
|
|
pub data: String,
|
|
pub id: Option<String>,
|
|
pub retry: Option<u64>,
|
|
}
|