// This file is automatically generated, so please do not edit it. // @generated by `flutter_rust_bridge`@ 2.11.1. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import import 'frb_generated.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; // These functions are ignored because they are not marked as `pub`: `config_to_dto`, `ensure_repo`, `task_to_dto` // These types are ignored because they are neither used by any `pub` functions nor (for structs and enums) marked `#[frb(unignore)]`: `AppState` Future getConfig() => RustLib.instance.api.crateApiGetConfig(); Future initWorkspace({required String path}) => RustLib.instance.api.crateApiInitWorkspace(path: path); Future addWorkspace({required String name, required String path}) => RustLib.instance.api.crateApiAddWorkspace(name: name, path: path); Future setCurrentWorkspace({required String name}) => RustLib.instance.api.crateApiSetCurrentWorkspace(name: name); Future removeWorkspace({required String name}) => RustLib.instance.api.crateApiRemoveWorkspace(name: name); Future> getLists() => RustLib.instance.api.crateApiGetLists(); Future createList({required String name}) => RustLib.instance.api.crateApiCreateList(name: name); Future deleteList({required String listId}) => RustLib.instance.api.crateApiDeleteList(listId: listId); Future> listTasks({required String listId}) => RustLib.instance.api.crateApiListTasks(listId: listId); Future createTask({ required String listId, required String title, required String description, }) => RustLib.instance.api.crateApiCreateTask( listId: listId, title: title, description: description, ); Future updateTask({required String listId, required TaskDto task}) => RustLib.instance.api.crateApiUpdateTask(listId: listId, task: task); Future deleteTask({required String listId, required String taskId}) => RustLib.instance.api.crateApiDeleteTask(listId: listId, taskId: taskId); Future toggleTask({required String listId, required String taskId}) => RustLib.instance.api.crateApiToggleTask(listId: listId, taskId: taskId); Future reorderTask({ required String listId, required String taskId, required int newPosition, }) => RustLib.instance.api.crateApiReorderTask( listId: listId, taskId: taskId, newPosition: newPosition, ); Future greet({required String name}) => RustLib.instance.api.crateApiGreet(name: name); class AppConfigDto { final List workspaces; final String? currentWorkspace; const AppConfigDto({required this.workspaces, this.currentWorkspace}); @override int get hashCode => workspaces.hashCode ^ currentWorkspace.hashCode; @override bool operator ==(Object other) => identical(this, other) || other is AppConfigDto && runtimeType == other.runtimeType && workspaces == other.workspaces && currentWorkspace == other.currentWorkspace; } class TaskDto { final String id; final String title; final String description; final String status; final String? dueDate; final String createdAt; final String updatedAt; final String? parentId; const TaskDto({ required this.id, required this.title, required this.description, required this.status, this.dueDate, required this.createdAt, required this.updatedAt, this.parentId, }); @override int get hashCode => id.hashCode ^ title.hashCode ^ description.hashCode ^ status.hashCode ^ dueDate.hashCode ^ createdAt.hashCode ^ updatedAt.hashCode ^ parentId.hashCode; @override bool operator ==(Object other) => identical(this, other) || other is TaskDto && runtimeType == other.runtimeType && id == other.id && title == other.title && description == other.description && status == other.status && dueDate == other.dueDate && createdAt == other.createdAt && updatedAt == other.updatedAt && parentId == other.parentId; } class TaskListDto { final String id; final String title; final String createdAt; final String updatedAt; final bool groupByDueDate; const TaskListDto({ required this.id, required this.title, required this.createdAt, required this.updatedAt, required this.groupByDueDate, }); @override int get hashCode => id.hashCode ^ title.hashCode ^ createdAt.hashCode ^ updatedAt.hashCode ^ groupByDueDate.hashCode; @override bool operator ==(Object other) => identical(this, other) || other is TaskListDto && runtimeType == other.runtimeType && id == other.id && title == other.title && createdAt == other.createdAt && updatedAt == other.updatedAt && groupByDueDate == other.groupByDueDate; } class WorkspaceEntry { final String name; final String path; final String? webdavUrl; final String? lastSync; const WorkspaceEntry({ required this.name, required this.path, this.webdavUrl, this.lastSync, }); @override int get hashCode => name.hashCode ^ path.hashCode ^ webdavUrl.hashCode ^ lastSync.hashCode; @override bool operator ==(Object other) => identical(this, other) || other is WorkspaceEntry && runtimeType == other.runtimeType && name == other.name && path == other.path && webdavUrl == other.webdavUrl && lastSync == other.lastSync; }