Struct blob_dl::assembling::youtube::config::DownloadConfig
source · pub struct DownloadConfig {
pub download_target: DownloadOption,
/* private fields */
}
Expand description
Contains all the information needed to download a youtube video or playlist
Fields§
§download_target: DownloadOption
Whether the link refers to a playlist or a single video
Implementations§
source§impl DownloadConfig
impl DownloadConfig
sourcepub fn build_command_for_video(&self, video_id: &str) -> Command
pub fn build_command_for_video(&self, video_id: &str) -> Command
Downloads a new video while keeping the current preferences.
This function is meant to be used to re-download videos which failed because of issues like bad internet
Trait Implementations§
source§impl Clone for DownloadConfig
impl Clone for DownloadConfig
source§fn clone(&self) -> DownloadConfig
fn clone(&self) -> DownloadConfig
Returns a copy of the value. Read more
1.0.0 · 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 RefUnwindSafe for DownloadConfig
impl Send for DownloadConfig
impl Sync for DownloadConfig
impl Unpin for DownloadConfig
impl UnwindSafe for DownloadConfig
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