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
Sets 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
Sets 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
Sets 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
Sets the maximum duration in seconds of the returned videos.
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