pub struct Track {
pub name: Option<String>,
pub comment: Option<String>,
pub description: Option<String>,
pub source: Option<String>,
pub links: Vec<Link>,
pub type_: Option<String>,
pub number: Option<u32>,
pub segments: Vec<TrackSegment>,
}
Expand description
Track represents an ordered list of points describing a path.
Fields§
§name: Option<String>
GPS name of track.
comment: Option<String>
GPS comment for track.
description: Option<String>
User description of track.
source: Option<String>
Source of data. Included to give user some idea of reliability and accuracy of data.
links: Vec<Link>
Links to external information about the track.
type_: Option<String>
Type (classification) of track.
number: Option<u32>
GPS number of track
segments: Vec<TrackSegment>
A Track Segment holds a list of Track Points which are logically connected in order. To represent a single GPS track where GPS reception was lost, or the GPS receiver was turned off, start a new Track Segment for each continuous span of track data.
Implementations§
source§impl Track
impl Track
sourcepub fn multilinestring(&self) -> MultiLineString<f64>
pub fn multilinestring(&self) -> MultiLineString<f64>
Gives the multi-linestring that this track represents, which is multiple linestrings.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Track
impl<'de> Deserialize<'de> for Track
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Track
impl PartialEq for Track
impl StructuralPartialEq for Track
Auto Trait Implementations§
impl RefUnwindSafe for Track
impl Send for Track
impl Sync for Track
impl Unpin for Track
impl UnwindSafe for Track
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more