Crate string_templater

Source

Structs§

StringTemplaterOptions
TemplateBuilder

Enums§

StringTemplaterError
Any errors that might occurs while generating or parsing the string template.

Functions§

generate
Inject values of a hashmap based on their field names. Datas are injected on a specific string interpolation using the pattern {{key_name}}. This allow a simple navigation around the datas.
generate_with_options
Inject values of a hashmap based on their field names. Datas are injected on a specific string interpolation using the pattern {{key_name}}. This allow a simple navigation around the datas.
parse
Inject values of a serializable object based on their field names. Datas are injected on a specific string interpolation using the pattern {{field_a.subfield_a}}. You can now think of your struct as an object containing fields, the same way javascript does. This allow a simple navigation around the datas.
parse_to_hashmap
parse_with_options
Inject values of a serializable object based on their field names. Datas are injected on a specific string interpolation using the pattern {{field_a.subfield_a}}. You can now think of your struct as an object containing fields, the same way javascript does. This allow a simple navigation around the datas.

Type Aliases§

OverrideMessage