Enum youtube_dl::YoutubeDlOutput
source · pub enum YoutubeDlOutput {
Playlist(Box<Playlist>),
SingleVideo(Box<SingleVideo>),
}
Expand description
Data returned by YoutubeDl::run
. Output can either be a single video or a playlist of videos.
Variants§
Implementations§
source§impl YoutubeDlOutput
impl YoutubeDlOutput
sourcepub fn into_single_video(self) -> Option<SingleVideo>
pub fn into_single_video(self) -> Option<SingleVideo>
Get the inner content as a single video.
sourcepub fn into_playlist(self) -> Option<Playlist>
pub fn into_playlist(self) -> Option<Playlist>
Get the inner content as a playlist.
Trait Implementations§
source§impl Clone for YoutubeDlOutput
impl Clone for YoutubeDlOutput
source§fn clone(&self) -> YoutubeDlOutput
fn clone(&self) -> YoutubeDlOutput
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 moresource§impl Debug for YoutubeDlOutput
impl Debug for YoutubeDlOutput
source§impl<'de> Deserialize<'de> for YoutubeDlOutput
impl<'de> Deserialize<'de> for YoutubeDlOutput
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for YoutubeDlOutput
impl Send for YoutubeDlOutput
impl Sync for YoutubeDlOutput
impl Unpin for YoutubeDlOutput
impl UnwindSafe for YoutubeDlOutput
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