#.
1 messages · Page 1 of 1 (latest)
You would invoke that function like this:
invoke('add_data_to_profile', { data: [['a', 'b'], ['c', 'd']] })
You don't have to return a string from the Rust function; it can be anything that implements serde::Serialize. All this is documented here: https://tauri.app/v1/guides/features/command/