pub struct DownloadOptions {
pub url: String,
pub client_id: String,
pub client_secret: String,
pub output_dir: String,
pub concurrent_downloads: usize,
pub no_dupes: bool,
pub bitrate: String,
pub format: String,
pub verbosity: String,
pub no_tag: bool,
}Expand description
Options used to control how downloads are performed.
These map to CLI flags in the binary.
Fields§
§url: StringSpotify URL (track/album/playlist)
client_id: StringSpotify Client ID
client_secret: StringSpotify Client Secret
output_dir: StringDestination folder for audio files
concurrent_downloads: usizeMaximum number of concurrent downloads
no_dupes: boolSkip duplicate tracks across collections
bitrate: StringTarget audio bitrate for ffmpeg (e.g., “192k”)
format: StringOutput format/extension (e.g., “mp3”)
verbosity: StringLog verbosity level:
"full": All debug information with progress bars"info": Standard information with progress bars"debug": Debug level logging with progress bars"no-bars": Clean stdout output without progress bars (ideal for scripts/CI)"none": Minimal output with progress bars
no_tag: boolDon’t write audio tags or cover art
Auto Trait Implementations§
impl Freeze for DownloadOptions
impl RefUnwindSafe for DownloadOptions
impl Send for DownloadOptions
impl Sync for DownloadOptions
impl Unpin for DownloadOptions
impl UnwindSafe for DownloadOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more