cedar_policy::ffi

Function is_authorized_partial_json_str

Source
pub fn is_authorized_partial_json_str(json: &str) -> Result<String, Error>
Available on crate feature partial-eval only.
Expand description

Input and output are strings containing serialized JSON, in the shapes expected by is_authorized_partial_json()

ยงErrors

Will return Err if the input cannot be converted to valid JSON or deserialized as an AuthorizationCall.

This feature is experimental. For more information see https://github.com/cedar-policy/rfcs/blob/main/README.md#experimental-features