Skip to main content

pamoja_rule_evaluator_topics_json

Function pamoja_rule_evaluator_topics_json 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_rule_evaluator_topics_json( rules: *const PamojaRuleEvaluator, ) -> *mut PamojaString
Expand description

Lists the topics the rules watch, which are the topics to subscribe to.

§Arguments

  • rules - the evaluator.

§Returns

A JSON array of the topics, each once, in name order, which the caller releases with pamoja_string_free, or null if rules is null.

§Safety

rules must be a live handle from pamoja_rule_evaluator_from_json, or null.