Struct youtube_dl::SearchOptions
source · pub struct SearchOptions { /* private fields */ }
Expand description
Specifies where to search, how many results to fetch and the query. The count
defaults to 1, but can be changed with the with_count
method.
Implementations§
source§impl SearchOptions
impl SearchOptions
sourcepub fn soundcloud(query: impl Into<String>) -> Self
pub fn soundcloud(query: impl Into<String>) -> Self
Search on SoundCloud
sourcepub fn custom(search_type: impl Into<String>, query: impl Into<String>) -> Self
pub fn custom(search_type: impl Into<String>, query: impl Into<String>) -> Self
Search with a custom search provider (in case this library falls behind the feature set of youtube-dl)
sourcepub fn with_count(self, count: usize) -> Self
pub fn with_count(self, count: usize) -> Self
Set the count for how many videos at most to retrieve from the search.
Trait Implementations§
source§impl Clone for SearchOptions
impl Clone for SearchOptions
source§fn clone(&self) -> SearchOptions
fn clone(&self) -> SearchOptions
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 SearchOptions
impl Debug for SearchOptions
Auto Trait Implementations§
impl Freeze for SearchOptions
impl RefUnwindSafe for SearchOptions
impl Send for SearchOptions
impl Sync for SearchOptions
impl Unpin for SearchOptions
impl UnwindSafe for SearchOptions
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