Skip to main content

Module collections

Module collections 

Source
Expand description

Collection-related API endpoints.

This module contains endpoint definitions for managing manual, smart, and virtual collections of ROMs.

Structs§

DeleteManualCollection
DELETE /api/collections/{id}
DeleteSmartCollection
DELETE /api/collections/smart/{id}
GetManualCollection
GET /api/collections/{id}
GetSmartCollection
GET /api/collections/smart/{id}
GetVirtualCollection
GET /api/collections/virtual/{id}
ListCollections
List manual (user) collections. RomM API: GET /api/collections.
ListSmartCollections
List smart collections. RomM API: GET /api/collections/smart (separate from manual collections).
ListVirtualCollections
List virtual (autogenerated) collections. RomM API: GET /api/collections/virtual?type=…

Enums§

CollectionsList
RomM may return a bare array or a paged envelope; normalize with CollectionsList::into_vec.

Functions§

merge_all_collection_sources
Combine manual, smart, and virtual (autogenerated) collection lists for the library UI.
merge_manual_and_smart
Combine manual and smart collection lists (tests and callers that skip virtual).