Function encode_json
pub fn encode_json(
resources: &[ResourceSpec],
address: &ActionAddress,
arguments: &Map<String, Value>,
) -> Result<EncodedAction, DoorError>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 DoorError::Unknown when the address is not published,
DoorError::Unavailable when policy currently disables it, or
DoorError::InvalidArguments (or DoorError::ArgumentOutOfRange)
when the object violates its parameter contract.