cala_cel_interpreter/
cel_type.rs

1#[derive(Debug, Clone, Copy, PartialEq, Eq)]
2pub enum CelType {
3    // Builtins
4    Map,
5    List,
6    Int,
7    UInt,
8    Double,
9    String,
10    Bytes,
11    Bool,
12    Null,
13
14    // Abstract
15    Date,
16    Timestamp,
17    Uuid,
18    Decimal,
19}
20
21impl CelType {
22    pub(crate) fn package_name(&self) -> &'static str {
23        match self {
24            CelType::Map => "map",
25            CelType::List => "list",
26            CelType::Int => "int",
27            CelType::UInt => "uint",
28            CelType::Double => "double",
29            CelType::String => "string",
30            CelType::Bytes => "bytes",
31            CelType::Bool => "bool",
32            CelType::Null => "null",
33            CelType::Date => "date",
34            CelType::Timestamp => "timestamp",
35            CelType::Uuid => "uuid",
36            CelType::Decimal => "decimal",
37        }
38    }
39}