pub struct PlaylistDownloadConfig {
pub client: Client,
pub decrypt: bool,
pub directory: Option<PathBuf>,
pub keys: HashMap<String, String>,
pub merge: bool,
pub query: Arc<Vec<(String, String)>>,
pub resume: bool,
pub retries: u8,
pub threads: u8,
}Expand description
Configuration options for the playlist download process.
Fields§
§client: ClientThe HTTP client used for fetching streams and segments.
decrypt: boolWhether to automatically attempt decryption of streams.
directory: Option<PathBuf>The temporary/download directory.
keys: HashMap<String, String>Cryptographic keys used for decryption (Key ID -> Key mapping).
merge: boolWhether to merge all downloaded tracks into a single output file.
query: Arc<Vec<(String, String)>>Query parameters appended to request URLs.
resume: boolWhether to resume partial downloads.
retries: u8Number of retries per chunk/segment on network failure.
threads: u8Number of concurrent segment download tasks.
Trait Implementations§
Source§impl Clone for PlaylistDownloadConfig
impl Clone for PlaylistDownloadConfig
Source§fn clone(&self) -> PlaylistDownloadConfig
fn clone(&self) -> PlaylistDownloadConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PlaylistDownloadConfig
impl !RefUnwindSafe for PlaylistDownloadConfig
impl Send for PlaylistDownloadConfig
impl Sync for PlaylistDownloadConfig
impl Unpin for PlaylistDownloadConfig
impl UnsafeUnpin for PlaylistDownloadConfig
impl !UnwindSafe for PlaylistDownloadConfig
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