Skip to main content

command

Attribute Macro command 

Source
#[command]
Expand description

Marks a function as a Tyzen command.

This macro collects metadata about the function’s parameters and return type to generate matching TypeScript bindings. It does NOT emit #[tauri::command].

§Example

#[tyzen::command(namespace = "auth")]
fn login(username: String) -> Result<User, Error> { ... }