doris_rs/matcher.rs
1//! DORIS ground station dataset matcher
2use crate::prelude::DOMES;
3
4#[cfg(doc)]
5use crate::prelude::{GroundStation, Record, DORIS};
6
7/// [Matcher] is used to easily identify [GroundStation]s from a [DORIS] [Record].
8#[derive(Debug, Clone, PartialEq)]
9pub enum Matcher<'a> {
10 /// Search by station ID#
11 /// ```
12 /// use doris_rs::prelude::*;
13 ///
14 /// ```
15 ID(u16),
16
17 /// Search by site name
18 /// ```
19 /// use doris_rs::prelude::*;
20 ///
21 /// ```
22 Site(&'a str),
23
24 /// Scarch by 4 letter station label
25 /// ```
26 /// use doris_rs::prelude::*;
27 ///
28 /// ```
29 Label(&'a str),
30
31 /// Search by DOMES code
32 /// ```
33 /// use doris_rs::prelude::*;
34 ///
35 /// ```
36 DOMES(DOMES),
37}