Struct google_photoslibrary1::Album [−][src]
pub struct Album { pub media_items_count: Option<i64>, pub title: Option<String>, pub is_writeable: Option<bool>, pub share_info: Option<ShareInfo>, pub cover_photo_base_url: Option<String>, pub product_url: Option<String>, pub cover_photo_media_item_id: Option<String>, pub id: Option<String>, }
Representation of an album in Google Photos.
Albums are containers for media items. If an album has been shared by the
application, it contains an extra shareInfo
property.
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).
- list albums (none)
- add enrichment albums (none)
- get shared albums (response)
- share albums (none)
- create albums (response)
- get albums (response)
Fields
media_items_count: Option<i64>
[Output only] The number of media items in the album.
title: Option<String>
Name of the album displayed to the user in their Google Photos account. This string shouldn't be more than 500 characters.
is_writeable: Option<bool>
[Output only] True if you can create media items in this album. This field is based on the scopes granted and permissions of the album. If the scopes are changed or permissions of the album are changed, this field is updated.
[Output only] Information related to shared albums.
This field is only populated if the album is a shared album, the
developer created the album and the user has granted the
photoslibrary.sharing
scope.
cover_photo_base_url: Option<String>
[Output only] A URL to the cover photo's bytes. This shouldn't be used as
is. Parameters should be appended to this URL before use. For example,
'=w2048-h1024'
sets the dimensions of
the cover photo to have a width of 2048 px and height of 1024 px.
product_url: Option<String>
[Output only] Google Photos URL for the album. The user needs to be signed in to their Google Photos account to access this link.
cover_photo_media_item_id: Option<String>
[Output only] Identifier for the media item associated with the cover photo.
id: Option<String>
[Ouput only] Identifier for the album. This is a persistent identifier that can be used between sessions to identify this album.
Trait Implementations
impl Default for Album
[src]
impl Default for Album
impl Clone for Album
[src]
impl Clone for Album
fn clone(&self) -> Album
[src]
fn clone(&self) -> Album
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 Album
[src]
impl Debug for Album
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 Album
[src]
impl Resource for Album
impl ResponseResult for Album
[src]
impl ResponseResult for Album