fn format_meeting_type_helper(h: &Helper<'_, '_>, out: &mut dyn Output) -> HelperResult {
    // Extract the parameter
    let input: MeetingType = h
        .param(0)
        .and_then(|param| {
            // Deserialize to meeting type
            serde_json::from_value::<MeetingType>(param.value().clone()).ok()
        })
        // Convert and handle error
        .ok_or(RenderError::new(
            "format_meeting_type expects one meeting_type parameter",
        ))?;

    // Write the display formatting to the output.
    out.write(input.to_string().as_str())?;
    Ok(())
}
/// Handlebars helper to properly format a meeting type.
Handlebars helper to properly format a meeting type.
Handlebars helper to properly format a meeting type .
fn format_meeting_type_helper(h: &Helper<'_, '_>, out: &mut dyn Output) -> HelperResult {
    // Extract the parameter
    let input: MeetingType = h
        .param(0)
        .and_then(|param| {
            // Deserialize to meeting type
            serde_json::from_value::<MeetingType>(param.value().clone()).ok()
        })
        // Convert and handle error
        .ok_or(RenderError::new(
            "format_meeting_type expects one meeting_type parameter",
        ))?;
    // Write the display formatting to the output.
    out.write(input.to_string().as_str())?;
    Ok(())
}
fn format_meeting_type_helper ( h : & Helper < ' _ , ' _ > , out : & mut dyn Output ) -> HelperResult { // Extract the parameter let input : MeetingType = h . param ( 0 ) . and_then ( | param | { // Deserialize to meeting type serde_json :: from_value :: < MeetingType > ( param . value ( ) . clone ( ) ) . ok ( ) } ) // Convert and handle error . ok_or ( RenderError :: new ( " " , ) ) ? ; // Write the display formatting to the output. out . write ( input . to_string ( ) . as_str ( ) ) ? ; Ok ( ( ) ) }
Handlebars helper to properly format a meeting type.
Handlebars helper to properly format a meeting type .
h
&Helper<'_, '_>
out
&mut dyn Output
h
&Helper<'_, '_>
out
&mut dyn Output