How to define tuple for Variant type in Rust

I know how to work with simple types:

SimpleAction::new(&uuid_string_random(), Some(&String::static_variant_type()))

but seems that something went wrong with my tuple definition, could somebody help with example please or just documentation reference?

Can you give an example what you tried and how it failed?

Thanks, but I’ve already implemented everything that want with action state here.

Finally, implemented (String, bool) tuple for Variant:

SimpleAction::new(
    "action-name",
    Some(&<(String, bool)>::static_variant_type()),
)

Entire source

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.