1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
//! Route related structs and implementations
use super::agency::Agency;

#[derive(Debug, Serialize, Deserialize)]
pub struct Route {
    pub uid: String,
    #[serde(skip_serializing)]
    pub id: String,
    pub agency_id: Option<String>,
    pub short_name: String,
    pub long_name: String,
    pub color: Option<String>,
    pub text_color: Option<String>,
    pub description: Option<String>,
    #[serde(rename = "type")]
    pub route_type: i32,
    #[serde(skip_serializing)]
    pub feed_id: String,
}