1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

#[derive(Debug, Clone, Copy)]
pub enum View {
    Full, // we show all elements (status, methods)
    Limited(usize),
}

impl View {
    pub fn limit(self) -> usize {
        match self {
            Self::Full => 100,
            Self::Limited(limit) => limit,
        }
    }
}

/// describe how the table(s) related to a hit field
/// must be printed
pub struct Section {
    pub groups_name: &'static str,
    pub group_key: &'static str,
    pub view: View,
    pub changes: bool, // means it may sense to show changes tables
}