doris_rs/record/
key.rs

1#[cfg(feature = "serde")]
2use serde::{Deserialize, Serialize};
3
4#[cfg(doc)]
5use crate::prelude::Measurements;
6
7use crate::prelude::{Epoch, EpochFlag, GroundStation};
8
9/// [Key] is used to store [GroundStation]s [Measurements] uniquely.
10#[derive(Clone, Debug, Default, PartialEq, PartialOrd, Eq, Ord, Hash)]
11#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
12pub struct Key {
13    /// [EpochFlag] describing attached data and sampling conditions
14    pub flag: EpochFlag,
15
16    /// [Epoch] of measurement
17    pub epoch: Epoch,
18
19    /// [GroundStation] being observed
20    pub station: GroundStation,
21}