pub struct PopularBuilder { /* private fields */ }Expand description
Builder for Popular.
Implementations§
Source§impl PopularBuilder
impl PopularBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new PopularBuilder.
Sourcepub fn min_width(self, min_width: usize) -> Self
pub fn min_width(self, min_width: usize) -> Self
The minimum width in pixels of the returned videos.
Sourcepub fn min_height(self, min_height: usize) -> Self
pub fn min_height(self, min_height: usize) -> Self
The minimum height in pixels of the returned videos.
Sourcepub fn min_duration(self, min_duration: usize) -> Self
pub fn min_duration(self, min_duration: usize) -> Self
The minimum duration in seconds of the returned videos.
Sourcepub fn max_duration(self, max_duration: usize) -> Self
pub fn max_duration(self, max_duration: usize) -> Self
The maximum duration in seconds of the returned videos.
Sourcepub fn per_page(self, per_page: usize) -> Self
pub fn per_page(self, per_page: usize) -> Self
The number of results you are requesting per page.
Sourcepub fn build(self) -> Popular
pub fn build(self) -> Popular
Create Popular from the PopularBuilder
Trait Implementations§
Source§impl Default for PopularBuilder
impl Default for PopularBuilder
Source§fn default() -> PopularBuilder
fn default() -> PopularBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PopularBuilder
impl RefUnwindSafe for PopularBuilder
impl Send for PopularBuilder
impl Sync for PopularBuilder
impl Unpin for PopularBuilder
impl UnwindSafe for PopularBuilder
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