mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-11-30 09:34:29 +00:00
25 lines
552 B
Rust
25 lines
552 B
Rust
use crate::{Link, TrackSegment};
|
|||
|
|
|
||
|
|
use super::common::uuid_id;
|
||
|
|
|
||
|
|
uuid_id!(TrackId);
|
||
|
|
|
||
|
|
#[derive(Debug, Default, Clone)]
|
||
|
|
pub struct Track {
|
||
|
|
pub id: TrackId,
|
||
|
|
pub info: TrackInfo,
|
||
|
|
pub trkseg: Vec<TrackSegment>,
|
||
|
|
}
|
||
|
|
|
||
|
|
#[derive(Debug, Default, Clone, PartialEq)]
|
||
|
|
pub struct TrackInfo {
|
||
|
|
pub name: Option<String>,
|
||
|
|
pub cmt: Option<String>,
|
||
|
|
pub desc: Option<String>,
|
||
|
|
pub src: Option<String>,
|
||
|
|
pub links: Vec<Link>,
|
||
|
|
pub type_: Option<String>,
|
||
|
|
pub color: Option<String>,
|
||
|
|
pub opacity: Option<f64>,
|
||
|
|
pub width: Option<f64>,
|
||
|
|
}
|