pub struct PhotosResponse {
pub total_results: u32,
pub page: u32,
pub per_page: u32,
pub photos: Vec<Photo>,
pub next_page: Option<String>,
pub prev_page: Option<String>,
}
Expand description
Represents the response for a list of photos.
Fields§
§total_results: u32
§page: u32
§per_page: u32
§photos: Vec<Photo>
§next_page: Option<String>
§prev_page: Option<String>
Trait Implementations§
Source§impl Clone for PhotosResponse
impl Clone for PhotosResponse
Source§fn clone(&self) -> PhotosResponse
fn clone(&self) -> PhotosResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 PhotosResponse
impl Debug for PhotosResponse
Source§impl<'de> Deserialize<'de> for PhotosResponse
impl<'de> Deserialize<'de> for PhotosResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PhotosResponse
impl RefUnwindSafe for PhotosResponse
impl Send for PhotosResponse
impl Sync for PhotosResponse
impl Unpin for PhotosResponse
impl UnwindSafe for PhotosResponse
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