1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::super::Repetition;

#[cfg(feature = "serde_types")]
use serde_derive::{Deserialize, Serialize};

/// Common type information.
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serde_types", derive(Deserialize, Serialize))]
pub struct FieldInfo {
    /// The field name
    pub name: String,
    /// The repetition
    pub repetition: Repetition,
    /// the optional id, to select fields by id
    pub id: Option<i32>,
}