22 lines
632 B
Rust
22 lines
632 B
Rust
use serde::Serialize;
|
|
use sqlx::types::Json as SqlxJson;
|
|
|
|
#[derive(Debug, Serialize, sqlx::FromRow)]
|
|
pub struct StopDetail {
|
|
pub id: i32,
|
|
pub code: String,
|
|
pub name_th: String,
|
|
pub name_en: Option<String>,
|
|
pub city_th: Option<String>,
|
|
pub city_en: Option<String>,
|
|
pub province_th: Option<String>,
|
|
pub province_en: Option<String>,
|
|
pub station_type: String,
|
|
pub attributes: SqlxJson<serde_json::Value>,
|
|
pub metadata: SqlxJson<serde_json::Value>,
|
|
pub images: SqlxJson<serde_json::Value>,
|
|
pub routes: SqlxJson<serde_json::Value>,
|
|
pub lng: Option<f64>,
|
|
pub lat: Option<f64>,
|
|
}
|