pub struct PopularVideoParams {
pub page: Option<u32>,
pub per_page: Option<u32>,
pub min_width: Option<u32>,
pub min_height: Option<u32>,
pub min_duration: Option<u32>,
pub max_duration: Option<u32>,
}Expand description
Popular video parameters.
Fields§
§page: Option<u32>Page number to retrieve
per_page: Option<u32>Number of videos per page
min_width: Option<u32>Minimum video width in pixels
min_height: Option<u32>Minimum video height in pixels
min_duration: Option<u32>Minimum video duration in seconds
max_duration: Option<u32>Maximum video duration in seconds
Implementations§
Source§impl PopularVideoParams
impl PopularVideoParams
Sourcepub fn from_pagination(params: &PaginationParams) -> Self
pub fn from_pagination(params: &PaginationParams) -> Self
Create popular video params from simple pagination params.
Sourcepub fn min_height(self, min_height: u32) -> Self
pub fn min_height(self, min_height: u32) -> Self
Set the minimum video height in pixels
Sourcepub fn min_duration(self, min_duration: u32) -> Self
pub fn min_duration(self, min_duration: u32) -> Self
Set the minimum video duration in seconds
Sourcepub fn max_duration(self, max_duration: u32) -> Self
pub fn max_duration(self, max_duration: u32) -> Self
Set the maximum video duration in seconds
Trait Implementations§
Source§impl Clone for PopularVideoParams
impl Clone for PopularVideoParams
Source§fn clone(&self) -> PopularVideoParams
fn clone(&self) -> PopularVideoParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PopularVideoParams
impl Debug for PopularVideoParams
Source§impl Default for PopularVideoParams
impl Default for PopularVideoParams
Source§fn default() -> PopularVideoParams
fn default() -> PopularVideoParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PopularVideoParams
impl RefUnwindSafe for PopularVideoParams
impl Send for PopularVideoParams
impl Sync for PopularVideoParams
impl Unpin for PopularVideoParams
impl UnsafeUnpin for PopularVideoParams
impl UnwindSafe for PopularVideoParams
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