pub struct Curated { /* private fields */ }
Expand description
photos module This endpoint enables you to receive real-time photos curated by the Pexels team.
Implementations§
Source§impl Curated
impl Curated
Sourcepub fn builder() -> CuratedBuilder
pub fn builder() -> CuratedBuilder
Creates CuratedBuilder
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 CuratedBuilder
.
Sourcepub async fn fetch(
&self,
client: &Pexels,
) -> Result<PhotosResponse, PexelsError>
pub async fn fetch( &self, client: &Pexels, ) -> Result<PhotosResponse, PexelsError>
Fetches the photo data from the Pexels API Curated
endpoint.
Auto Trait Implementations§
impl Freeze for Curated
impl RefUnwindSafe for Curated
impl Send for Curated
impl Sync for Curated
impl Unpin for Curated
impl UnwindSafe for Curated
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