pub struct MediaPhoto {
pub type_: String,
pub id: u32,
pub width: u32,
pub height: u32,
pub url: Option<String>,
pub photographer: Option<String>,
pub photographer_url: Option<String>,
pub photographer_id: u32,
pub avg_color: String,
pub src: PhotoSrc,
pub liked: bool,
pub alt: String,
}Expand description
Represents a photo media object.
Fields§
§type_: String§id: u32§width: u32§height: u32§url: Option<String>§photographer: Option<String>§photographer_url: Option<String>§photographer_id: u32§avg_color: String§src: PhotoSrc§liked: bool§alt: StringTrait Implementations§
Source§impl Clone for MediaPhoto
impl Clone for MediaPhoto
Source§fn clone(&self) -> MediaPhoto
fn clone(&self) -> MediaPhoto
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 MediaPhoto
impl Debug for MediaPhoto
Source§impl<'de> Deserialize<'de> for MediaPhoto
impl<'de> Deserialize<'de> for MediaPhoto
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
Source§impl From<MediaType> for MediaPhoto
impl From<MediaType> for MediaPhoto
Auto Trait Implementations§
impl Freeze for MediaPhoto
impl RefUnwindSafe for MediaPhoto
impl Send for MediaPhoto
impl Sync for MediaPhoto
impl Unpin for MediaPhoto
impl UnwindSafe for MediaPhoto
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