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 Value {
List(List(Value))
Map(dict.Dict(Key, Value))
Function(String, List(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, List(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)