pub struct Popular { /* private fields */ }Expand description
videos module Fetches the current popular Pexels videos.
Implementations§
Source§impl Popular
impl Popular
Sourcepub fn builder() -> PopularBuilder
pub fn builder() -> PopularBuilder
Creates PopularBuilder for building URI’s.
Sourcepub fn create_uri(&self) -> Result<String, PexelsError>
pub fn create_uri(&self) -> Result<String, PexelsError>
Create URI from inputted vales from the PopularBuilder.
Sourcepub async fn fetch(&self, client: &Pexels) -> Result<VideoResponse, PexelsError>
pub async fn fetch(&self, client: &Pexels) -> Result<VideoResponse, PexelsError>
Fetches the list of popular videos from the Pexels API.
Auto Trait Implementations§
impl Freeze for Popular
impl RefUnwindSafe for Popular
impl Send for Popular
impl Sync for Popular
impl Unpin for Popular
impl UnwindSafe for Popular
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