Struct google_photoslibrary1::MediaItem [−][src]
pub struct MediaItem { pub mime_type: Option<String>, pub description: Option<String>, pub base_url: Option<String>, pub filename: Option<String>, pub product_url: Option<String>, pub contributor_info: Option<ContributorInfo>, pub media_metadata: Option<MediaMetadata>, pub id: Option<String>, }
Representation of a media item (such as a photo or video) in Google Photos.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- batch create media items (none)
- get media items (response)
- search media items (none)
- list media items (none)
Fields
mime_type: Option<String>
MIME type of the media item. For example, image/jpeg
.
description: Option<String>
Description of the media item. This is shown to the user in the item's info section in the Google Photos app.
base_url: Option<String>
A URL to the media item's bytes. This shouldn't be used directly to access
the media item. For example, '=w2048-h1024'
will set the dimensions of a
media item of type photo to have a width of 2048 px and height of 1024 px.
filename: Option<String>
Filename of the media item. This is shown to the user in the item's info section in the Google Photos app.
product_url: Option<String>
Google Photos URL for the media item. This link is available to the user only if they're signed in.
contributor_info: Option<ContributorInfo>
Information about the user who created this media item.
media_metadata: Option<MediaMetadata>
Metadata related to the media item, such as, height, width, or creation time.
id: Option<String>
Identifier for the media item. This is a persistent identifier that can be used between sessions to identify this media item.
Trait Implementations
impl Default for MediaItem
[src]
impl Default for MediaItem
impl Clone for MediaItem
[src]
impl Clone for MediaItem
fn clone(&self) -> MediaItem
[src]
fn clone(&self) -> MediaItem
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for MediaItem
[src]
impl Debug for MediaItem
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Resource for MediaItem
[src]
impl Resource for MediaItem
impl ResponseResult for MediaItem
[src]
impl ResponseResult for MediaItem