[Rust]How to make string handing to frontend on tauri app

[rust]how-to-make-string-handing-to-frontend-on-tauri-app
#[tauri::command]
pub fn simple_command()->String{
    "String".to_string()
}

If you want to return a string in a Tauri command,add to_string() to the end of the string just like this.
This allows you to pass any string to the frontend like React.

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
trends-in-nondestructive-testing-(ndt)

Trends in Nondestructive Testing (NDT)

Next Post
jpg-to-jxl:-a-guide-to-converting-modern-image-formats

JPG to JXL: A Guide to Converting Modern Image Formats

Related Posts