Files
gpx.studio/gpx-rs/src/gpx/file.rs
T

28 lines
553 B
Rust
Raw Normal View History

2026-09-18 09:03:51 +02:00
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>>,
2026-09-21 23:49:57 +02:00
// TODO routes
2026-09-18 09:03:51 +02:00
}
#[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>,
}