Skip to main content

max_id_in_state_section

Function max_id_in_state_section 

Source
pub fn max_id_in_state_section(root: &Value, section: &str) -> i64
Expand description

Returns the greatest positive id in one state section.

§Parameters

§Returns

Returns the computed value produced by crate::runtime::json_commands::max_id_in_state_section.

§Performance

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

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::max_id_in_state_section(std::path::Path::new("."), "items");