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).

Fields

MIME type of the media item. For example, image/jpeg.

Description of the media item. This is shown to the user in the item's info section in the Google Photos app.

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 of the media item. This is shown to the user in the item's info section in the Google Photos app.

Google Photos URL for the media item. This link is available to the user only if they're signed in.

Information about the user who created this media item.

Metadata related to the media item, such as, height, width, or creation time.

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]

Returns the "default value" for a type. Read more

impl Clone for MediaItem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for MediaItem
[src]

Formats the value using the given formatter. Read more

impl Resource for MediaItem
[src]

impl ResponseResult for MediaItem
[src]

Auto Trait Implementations

impl Send for MediaItem

impl Sync for MediaItem