pub struct Search<'a> { /* private fields */ }
Expand description
The video.search API request.
Implementations
sourceimpl<'a> Search<'a>
impl<'a> Search<'a>
pub fn new() -> Self
pub fn sort(&mut self, value: Sort) -> &mut Self
pub fn hd(&mut self, value: bool) -> &mut Self
pub fn adult(&mut self, value: bool) -> &mut Self
pub fn search_own(&mut self, value: bool) -> &mut Self
pub fn longer(&mut self, value: Option<usize>) -> &mut Self
pub fn shorter(&mut self, value: Option<usize>) -> &mut Self
pub fn offset(&mut self, value: usize) -> &mut Self
pub fn count(&mut self, value: usize) -> &mut Self
pub fn filters(&mut self, value: &'a [Filter]) -> &mut Self
pub fn q(&mut self, value: &'a str) -> &mut Self
Trait Implementations
sourceimpl<'a> Request for Search<'a>
impl<'a> Request for Search<'a>
type Response = Collection<Video>
fn method_name() -> &'static str
fn permissions() -> Permissions
fn to_query_string(&self) -> String
fn to_url(&self) -> Url
impl<'a> Copy for Search<'a>
impl<'a> Eq for Search<'a>
impl<'a> StructuralEq for Search<'a>
impl<'a> StructuralPartialEq for Search<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Search<'a>
impl<'a> Send for Search<'a>
impl<'a> Sync for Search<'a>
impl<'a> Unpin for Search<'a>
impl<'a> UnwindSafe for Search<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.