parsing start

This commit is contained in:
vcoppe
2026-09-18 09:03:51 +02:00
parent ed6264444f
commit 69049e1345
29 changed files with 6622 additions and 119 deletions
+26
View File
@@ -0,0 +1,26 @@
use std::rc::Rc;
use crate::gpx::{Link, Track, WaypointChunk};
#[derive(Debug, Default)]
pub struct GPXFile {
pub info: GPXFileInfo,
pub trk: Vec<Track>,
pub wpt: Vec<Rc<WaypointChunk>>,
}
#[derive(Debug, Default)]
pub struct GPXFileInfo {
pub name: String,
pub desc: Option<String>,
pub author: Option<Author>,
pub link: Option<Link>,
pub time: Option<i64>,
}
#[derive(Debug, Default)]
pub struct Author {
pub name: Option<String>,
pub email: Option<String>,
pub link: Option<Link>,
}