Expand description
Remote MoosicBox server music library API client.
This crate provides a MusicApi implementation that connects to a remote MoosicBox
server over HTTP, allowing you to access and query a remote music library as if it were local.
§Example
let api = RemoteLibraryMusicApi::new(
"http://localhost:8000".to_string(),
ApiSource::library(),
"default".to_string(),
);
// Use the API to fetch artists, albums, tracks, etc.
let artists = api.artists(None, None, None, None).await?;§Main Components
RemoteLibraryMusicApi- The main client for accessing remote music librariesRequestError- Error type for HTTP request failures
Structs§
- Remote
Library Music Api - A
MusicApiimplementation that proxies requests to a remoteMoosicBoxserver.
Enums§
- Request
Error - Errors that can occur when making HTTP requests to a remote
MoosicBoxserver.