Expand description
Positional and named scalar extractors for Parameters: Value arguments
in CreateEffectForRequest domain handlers. Parameters is a single
serde_json::Value that may be a JSON array (positional) or object
(named). The str_obj_or_pos helper handles the 7 sites that accept both
shapes.
Functions§
- array_
unwrap - Unwrap one level of outer array:
[payload]→payload, else identity. Handles callers that always wrap in an array vs those that send the value directly. - bool_at
- bool_
at_ true - ensure_
array - Ensure the value is a JSON array; wraps non-arrays in
[value]. - i64_at
- i64_
at_ or - obj_
bool - obj_f64
- obj_str
- obj_val
- str_at
- str_
obj_ or_ pos - string_
at - string_
at_ or - strip_
file_ uri - Strip a leading
file://orfile:///scheme. Handles thefile://localhost/...form by removing the host segment. - u64_at
- u64_
at_ or - uri_
from_ params - Extract a URI parameter that may arrive as
[uri],{uri:…}, or bare. - val_at