cel/interpreter/value
Types
pub type Key {
KeyInt(Int)
KeyUInt(Int)
KeyBool(Bool)
KeyString(String)
}
Constructors
-
KeyInt(Int) -
KeyUInt(Int) -
KeyBool(Bool) -
KeyString(String)
pub type Type {
ListT
MapT
FunctionT
IntT
UIntT
FloatT
StringT
BytesT
BoolT
NullT
}
Constructors
-
ListT -
MapT -
FunctionT -
IntT -
UIntT -
FloatT -
StringT -
BytesT -
BoolT -
NullT
pub type Value {
List(List(Value))
Map(dict.Dict(Key, Value))
Function(String, Option(Value))
Int(Int)
UInt(Int)
Float(Float)
String(String)
Bytes(BitArray)
Bool(Bool)
Null
}
Constructors
-
List(List(Value)) -
Map(dict.Dict(Key, Value)) -
Function(String, Option(Value)) -
Int(Int) -
UInt(Int) -
Float(Float) -
String(String) -
Bytes(BitArray) -
Bool(Bool) -
Null
Functions
pub fn key_from_value(value: Value) -> Result(Key, Nil)