1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#[macro_export]
macro_rules! impl_name {
  ($struct_name:ty) => {
    impl $crate::traits::Name for $struct_name {
      const NAME: &'static str = stringify!($struct_name);
    }
  };
}

#[macro_export]
macro_rules! field_parsing_error {
  ($entity_name:expr) => {
    $crate::result::SQLiteError::ParsingField(
      $crate::result::FieldParsingError {
        error: "Invalid payload",
        ty: $entity_name,
      },
    )
  };
}