pub fn encode_json(
resources: &[ResourceSpec],
address: &ActionAddress,
arguments: &Map<String, Value>,
) -> Result<EncodedAction, ApiError>Expand description
Build an action from the canonical typed JSON argument object advertised
by ActionDescriptor::params. Binding is strict and completes before any
document mutation or application effect is attempted.
ยงErrors
Returns ApiError::Unknown when the address is not published,
ApiError::Unavailable when policy currently disables it, or
ApiError::InvalidArguments (or ApiError::ArgumentOutOfRange)
when the object violates its parameter contract.