Struct google_photoslibrary1::api::MediaMetadata
source · pub struct MediaMetadata {
pub creation_time: Option<DateTime<Utc>>,
pub height: Option<i64>,
pub photo: Option<Photo>,
pub video: Option<Video>,
pub width: Option<i64>,
}
Expand description
Metadata for a media item.
This type is not used in any activity, and only used as part of another schema.
Fields§
§creation_time: Option<DateTime<Utc>>
Time when the media item was first created (not when it was uploaded to Google Photos).
height: Option<i64>
Original height (in pixels) of the media item.
photo: Option<Photo>
Metadata for a photo media type.
video: Option<Video>
Metadata for a video media type.
width: Option<i64>
Original width (in pixels) of the media item.
Trait Implementations§
source§impl Clone for MediaMetadata
impl Clone for MediaMetadata
source§fn clone(&self) -> MediaMetadata
fn clone(&self) -> MediaMetadata
Returns a copy 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 MediaMetadata
impl Debug for MediaMetadata
source§impl Default for MediaMetadata
impl Default for MediaMetadata
source§fn default() -> MediaMetadata
fn default() -> MediaMetadata
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MediaMetadata
impl<'de> Deserialize<'de> for MediaMetadata
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 Serialize for MediaMetadata
impl Serialize for MediaMetadata
impl Part for MediaMetadata
Auto Trait Implementations§
impl RefUnwindSafe for MediaMetadata
impl Send for MediaMetadata
impl Sync for MediaMetadata
impl Unpin for MediaMetadata
impl UnwindSafe for MediaMetadata
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