ed_journals/modules/nav_route/models/
nav_route.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};

use crate::modules::nav_route::models::nav_route_entry::NavRouteEntry;

#[derive(Debug, Serialize, Deserialize, PartialEq, Clone)]
#[serde(rename_all = "PascalCase")]
pub struct NavRoute {
    #[serde(rename = "timestamp")]
    pub timestamp: DateTime<Utc>,

    #[serde(rename = "event")]
    pub event: String,
    pub route: Vec<NavRouteEntry>,
}