Skip to main content

Tauri Command Reference — Overview

The only API surface of IELTS Mastery Hub is the set of Tauri commands registered in tauri::generate_handler![...] inside src/core/src/lib.rs. There is no HTTP API or remote server.

Categorized index

CategoryCommandsReference
Profiles & Rolesget/list/create/update/delete_profiles, get/list/create/update/delete_user_rolesProfiles & User Roles
Readingget/list/create/update/delete_reading_tests, _reading_passages, _reading_question_groups, _reading_questionsReading Commands
Writingget/list/create/update/delete_writing_tests, _writing_tasks, grade_writingWriting Commands
Listeningget/list/create/update/delete_listening_tests, _listening_sections, _listening_question_groups, _listening_questions, upload_listening_audioListening Commands
Sessions & Libraryget/list/create/update/delete_user_test_sessions, list_practice_testsSessions & Practice Library
Storageupload_writing_asset, upload_listening_audioListening Commands, File System Integration
Importvalidate_import, import_reading_test, import_writing_test, import_listening_testImport & Export Commands
Exportexport_test_to_zipImport & Export Commands

Naming convention

Every core entity follows the same 5-command pattern: get_<entity>, list_<entity>, create_<entity>, update_<entity>, delete_<entity> (plural entity name, e.g. reading_tests, listening_sections). Each command is a thin wrapper in src/core/src/commands/<domain>.rs that delegates to a repository function in src/core/src/repositories/<domain>.rs, which performs the actual SQL and enforces ownership (created_by/user_id scoping — see each repository's find_by_id/find_all/update/delete implementation for the exact rule).

All commands return Result<T, String> — see Error Handling Conventions for the conversion pattern and common error strings.