Skip to main content

inspectable

Attribute Macro inspectable 

Source
#[inspectable]
Expand description

Marks a #[tauri::command] as inspectable by Victauri.

Generates:

  • A companion <fn_name>__schema() function returning the command’s JSON schema
  • Runtime telemetry (duration, result status) emitted as tracing spans
  • Auto-registration in the global command registry

§Example

#[tauri::command]
#[inspectable(description = "Save API key for a provider")]
async fn save_api_key(provider: String, key: String) -> Result<(), String> {
    // ...
}