Crate pdk_script

Crate pdk_script 

Source
Expand description

PDK Script

An interpreter for script expressions and the set of operations and types to interoperate with Rust.

Features:

  • stream_body: Enable the Evaluator to consume streamed payloads.
  • experimental_coerced_type: USE AT OWN RISK: Enables experimental type coercion features. This feature enables reading objects as their original representation as strings.

Structs§

Evaluator
An evaluator for Scripts.
Expression
An evaluable expression.
HandlerAttributesBinding
A wrapper that implements the AttributesBinding trait for the handlers provided by the PDK.
Script
An script relating an Expression with their Inputs.
ScriptParser
Parser for script Expressions.
ScriptingEngine
A builder for ScriptParsers.

Enums§

EvaluationError
Represents an evaluation error.
Format
Represents the format for the payload variable.
Input
Represents top-level variables.
ScriptError
Represents the ScriptParser::compile error.
Value
Represents any valid script value.

Traits§

AttributesBinding
Binding for the top-level attributes variable.
AuthenticationBinding
Binding for the top-level authentication variable.
IntoValue
A Rust-value to Script-value conversion that consumes the input.
PayloadBinding
Binding for the top-level payload variable.
TryFromValue
A falible Script-value to Rust-value conversion that consumes the input.