Skip to main content

execute_feature_action

Function execute_feature_action 

Source
pub fn execute_feature_action(
    app: &AppRuntime,
    route: &Value,
    request: &HttpRequest,
    actor_id: i64,
) -> Result<FeatureActionOutcome, FeatureRuntimeError>
Expand description

Executes one declared feature action.

§Parameters

§Returns

Returns the successful value produced by crate::runtime::feature_runtime::execute_feature_action or an error when the operation fails.

§Errors

Returns an error value when crate::runtime::feature_runtime::execute_feature_action cannot complete successfully.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::feature_runtime::execute_feature_action.

§Examples

ⓘ
let _result = pharos_native::runtime::feature_runtime::execute_feature_action(todo!(), todo!(), todo!(), 1);