gpx-rs 0.1.0

GPX 1.1 parsing, validation, path analytics, and CLI tools
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::Deserialize;

/// Copyright holder information (`copyrightType` in GPX 1.1).
///
/// Describes who owns the data and under what license it may be used.
#[derive(Debug, Clone, PartialEq, Eq, Deserialize)]
pub struct Copyright {
    /// Name of the copyright holder.
    #[serde(rename = "@author")]
    pub author: String,
    /// Year of copyright (ISO 8601 `gYear`, e.g. `"2026"`).
    #[serde(default)]
    pub year: Option<String>,
    /// URI of the license governing use of the file.
    #[serde(default)]
    pub license: Option<String>,
}