pub struct Photo {
pub id: u32,
pub width: u32,
pub height: u32,
pub url: String,
pub photographer: String,
pub photographer_url: String,
pub photographer_id: u32,
pub avg_color: String,
pub src: PhotoSrc,
pub liked: bool,
pub alt: String,
}
Expand description
Represents a Pexels photo.
Fields§
§id: u32
§width: u32
§height: u32
§url: String
§photographer: String
§photographer_url: String
§photographer_id: u32
§avg_color: String
§src: PhotoSrc
§liked: bool
§alt: String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Photo
impl<'de> Deserialize<'de> for Photo
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 Photo
impl RefUnwindSafe for Photo
impl Send for Photo
impl Sync for Photo
impl Unpin for Photo
impl UnwindSafe for Photo
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