rinnein/moonata/value does not have a README file
pub struct EvalContext {
root : JsonataValue
bindings : Map[String, JsonataValue]
depth : Int
max_depth : Int
steps : Int
max_steps : Int
max_sequence : Int
depth_exceeded_code : String
steps_exceeded_code : String
sequence_exceeded_code : String
current : JsonataValue
parent : JsonataValue
ancestors : Array[JsonataValue]
}The sequence option can be set to specify the maximum sequence length that can be created by an expression, including any intermediate sequences created by sub-expressions. Error D2015 will be thrown if, during the evaluation of an expression, the evaluator attempts to generate a sequence exceeding this upper limit.
fn EvalContext::new_with_guardrails(root : JsonataValue, max_depth? : Int, max_steps? : Int, max_sequence? : Int, depth_exceeded_code? : String, steps_exceeded_code? : String, sequence_exceeded_code? : String) -> EvalContextfn EvalContext::new_with_limits(root : JsonataValue, max_depth? : Int, max_steps? : Int) -> EvalContextfn[T] EvalContext::with_binding(self : EvalContext, name : String, value : JsonataValue, f : () -> T raise JsonataError) -> T raise JsonataErrorfn[T] EvalContext::with_context(self : EvalContext, current~ : JsonataValue, parent~ : JsonataValue, f : () -> T raise JsonataError) -> T raise JsonataErrorfn[T] EvalContext::with_depth(self : EvalContext, f : () -> T raise JsonataError) -> T raise JsonataErrorfn[T] EvalContext::with_lineage(self : EvalContext, current~ : JsonataValue, ancestors~ : Array[JsonataValue], f : () -> T raise JsonataError) -> T raise JsonataErrorpub struct JsonataFunc {
arity : Int
signature : String?
contextual : Bool
invoke : (Array[JsonataValue], EvalContext) -> JsonataValue raise JsonataError
thunk_call : () -> (JsonataFunc, Array[JsonataValue]) raise JsonataError?
}impl Debug for JsonataFuncfn JsonataFunc::apply(self : JsonataFunc, args : Array[JsonataValue], ctx : EvalContext) -> JsonataValue raise JsonataErrorfn JsonataFunc::check_args(self : JsonataFunc, args : Array[JsonataValue]) -> Unit raise JsonataErrorfn JsonataFunc::new(arity~ : Int, signature? : String?, contextual? : Bool, invoke~ : (Array[JsonataValue], EvalContext) -> JsonataValue raise JsonataError, thunk_call? : () -> (JsonataFunc, Array[JsonataValue]) raise JsonataError?) -> JsonataFuncfn JsonataFunc::validate_args(self : JsonataFunc, args : Array[JsonataValue], context : JsonataValue) -> Array[JsonataValue] raise JsonataErrorpub(all) enum JsonataValue {
Json(Json)
Sequence(Array[JsonataValue])
Func(JsonataFunc)
Object(Map[String, JsonataValue])
Regex(pattern~ : String, flags~ : String)
Undefined
} derive(Debug)let default_max_depth : Intlet default_max_sequence : Intlet default_max_steps : Intfn validate_function_args(signature : String, args : Array[JsonataValue], context : JsonataValue) -> Array[JsonataValue] raise JsonataError