Skip to main content

build_action

Function build_action 

pub fn build_action<R>(
    id: &str,
    arguments: &Map<String, Value>,
    now_ms: i64,
) -> Result<<R as Resource>::Action, String>
where R: Resource,
Expand description

Build the action a declaration produces for JSON arguments, validating them against its parameters exactly as the host does.

ยงErrors

Returns why the action is unknown or the arguments do not bind.