rocket_dyn_templates::tera::helpers::tests

Function extract_string

Source
pub fn extract_string<'a>(
    tester_name: &str,
    part: &str,
    value: Option<&'a Value>,
) -> Result<&'a str, Error>
Expand description

Helper function to extract string from an Option<Value> to remove boilerplate with tester error handling