pub struct Popular { /* private fields */ }
Expand description
videos module Represents a request for popular videos from the Pexels API.
Implementations§
Source§impl Popular
impl Popular
Sourcepub fn builder() -> PopularBuilder
pub fn builder() -> PopularBuilder
Creates a new PopularBuilder
for building URI’s.
Sourcepub fn create_uri(&self) -> Result<String, PexelsError>
pub fn create_uri(&self) -> Result<String, PexelsError>
Creates a URI from the provided parameters.
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