libtad_models/tides/
tide.rs

1use super::TidalPhase;
2use crate::time::Time;
3use serde::Deserialize;
4
5#[derive(Debug, Deserialize)]
6/// Information about the tide at a specific point in time.
7pub struct Tide {
8    /// Date/time of the specific tidal data point.
9    pub time: Time,
10
11    /// The elevation of tidal water above or below mean sea level.
12    pub amplitude: f32,
13
14    /// The current tidal phase.
15    pub phase: TidalPhase,
16}