Skip to main content

parse_context_query

Function parse_context_query 

Source
pub fn parse_context_query(spec: &str) -> Result<ContextQuerySpec, String>
Expand description

Parse a --context-query spelling: name or name($p = /ptr, $q = /ptr).

The plain-name form parses to an empty binding list, byte-identical in meaning to the 1.5.0 feature. Errors are plain strings — this runs at declaration time (CLI + schedule::validate) and at fire time, and both surface the message verbatim.

Pointers must start with / (RFC 6901) and, because , and ) are structural in this spelling, cannot contain either character. Keys that need them can be reached by reshaping the connector payload.