Struct google_photoslibrary1::api::MediaItem[][src]

pub struct MediaItem {
    pub base_url: Option<String>,
    pub contributor_info: Option<ContributorInfo>,
    pub description: Option<String>,
    pub filename: Option<String>,
    pub id: Option<String>,
    pub media_metadata: Option<MediaMetadata>,
    pub mime_type: Option<String>,
    pub product_url: 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

base_url: Option<String>

A URL to the media item’s bytes. This shouldn’t be used as is. Parameters should be appended to this URL before use. See the developer documentation for a complete list of supported parameters. 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.

contributor_info: Option<ContributorInfo>

Information about the user who created this media item.

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.

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.

id: Option<String>

Identifier for the media item. This is a persistent identifier that can be used between sessions to identify this media item.

media_metadata: Option<MediaMetadata>

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

mime_type: Option<String>

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

product_url: Option<String>

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

Trait Implementations

impl Clone for MediaItem[src]

impl Debug for MediaItem[src]

impl Default for MediaItem[src]

impl<'de> Deserialize<'de> for MediaItem[src]

impl RequestValue for MediaItem[src]

impl Resource for MediaItem[src]

impl ResponseResult for MediaItem[src]

impl Serialize for MediaItem[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.