Organization of recipes or presets of settings

Greetings colleagues!
Please advise what are the options for organizing the storage and output of settings presets.
I store settings in POU in a gSettings_type instance with a set of fields of different data types.
There is a need to organize the possibility for the operator to fill the fields with values “with one button”.
Visualization is built on VC4.

Hi,

1.) define your settings type

2.) define a variable containing the current settings and a constant of same type containing the defaults:

3.) copy all defaults to the variable with the current settings:

Hi @Pavel_Bezrodnyi

Did you end up following Christoph’s suggestion, or did you find a new way to organize your recipe data?

Greetings. I have found a solution for myself based on Christophe’s advice.
Since I need to be able to modify the contents of a recipe, I store references to structures in an array and access the specific structure by index.

I’m glad you found a solution, thank you for updating us!