Crate music_exporter

Crate music_exporter 

Source
Expand description

Music exporter

§CLI Usage

cargo install music-exporter
music-exporter --music-file musics.json --platform deezer

§Rust Usage

use music_exporter::{Music, MusicExporter, MusicExporterError};
use clap::Parser;

async fn run_async() -> Result<Vec<Music>, MusicExporterError> {
   let music_exp = MusicExporter::parse();
   // music_exp.load_env()?;
   music_exp.get_musics().await
}

Structs§

DeezerPlatform
Deezer platform implementation
Music
Music struct
MusicExporter
Music-exporter args
MusicExporterError
Galion error wrapper
SpotifyPlatform
Spotify platform
YoutubePlatform
Youtube platform

Enums§

PlatformType
Platform type

Traits§

Platform
Platform trait

Functions§

music_exporter_main
Main function for the CLI