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;

/// A link to an external resource (`linkType` in GPX 1.1).
///
/// Points to a web page, photo, video, or other related content.
#[derive(Debug, Clone, PartialEq, Eq, Deserialize)]
pub struct Link {
    /// URL of the linked resource.
    #[serde(rename = "@href")]
    pub href: String,
    /// Human-readable text describing the link.
    #[serde(default)]
    pub text: Option<String>,
    /// MIME type or category of the linked resource (GPX `<type>` element).
    #[serde(rename = "type", default)]
    pub link_type: Option<String>,
}