libtad-models 0.2.0

Time and Date API models
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::{StationInfo, Tide};
use serde::Deserialize;

#[derive(Debug, Deserialize)]
/// Predicted data for a given station.
pub struct Station {
    /// The source station for the predicted tidal data.
    pub source: StationInfo,

    /// The part of the queried placeid that this location matches.
    pub matchparam: String,

    /// Requested tidal information.
    pub result: Vec<Tide>,
}