Skip to main content

render_template_text_with_default_kind

Function render_template_text_with_default_kind 

Source
pub fn render_template_text_with_default_kind(
    template_text: &str,
    params_root: &Value,
    default_kind: &str,
) -> Option<String>
Expand description

Renders template text with an explicit default placeholder kind.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::render_template_text_with_default_kind can produce a value and None otherwise.

§Performance

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

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::render_template_text_with_default_kind(todo!(), &serde_json::json!({}), todo!());