1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use chrono::NaiveDateTime; use sqlx::FromRow; use uuid::Uuid; #[derive(Debug, FromRow)] pub struct Message { pub id: Uuid, pub stream_name: String, pub r#type: String, pub position: i64, pub global_position: i64, pub data: serde_json::Value, pub metadata: Option<serde_json::Value>, pub time: NaiveDateTime, }