pub struct Featured { /* private fields */ }
Expand description
collections module Represents a request to fetch all featured collections from the Pexels API.
Implementations§
Source§impl Featured
impl Featured
Sourcepub fn builder() -> FeaturedBuilder
pub fn builder() -> FeaturedBuilder
Creates a new FeaturedBuilder
for constructing a Featured
request.
Sourcepub fn create_uri(&self) -> Result<String, PexelsError>
pub fn create_uri(&self) -> Result<String, PexelsError>
Constructs the URI for the featured collections request based on the FeaturedBuilder
builder’s parameters.
Sourcepub async fn fetch(
&self,
client: &Pexels,
) -> Result<CollectionsResponse, PexelsError>
pub async fn fetch( &self, client: &Pexels, ) -> Result<CollectionsResponse, PexelsError>
Fetches the featured collections data from the Pexels API.
Auto Trait Implementations§
impl Freeze for Featured
impl RefUnwindSafe for Featured
impl Send for Featured
impl Sync for Featured
impl Unpin for Featured
impl UnwindSafe for Featured
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