Struct google_photoslibrary1::AlbumMethods [−][src]
pub struct AlbumMethods<'a, C, A> where
C: 'a,
A: 'a, { /* fields omitted */ }
A builder providing access to all methods supported on album resources.
It is not used directly, but through the PhotosLibrary
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_photoslibrary1 as photoslibrary1; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use photoslibrary1::PhotosLibrary; let secret: ApplicationSecret = Default::default(); let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate, hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), <MemoryStorage as Default>::default(), None); let mut hub = PhotosLibrary::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `add_enrichment(...)`, `create(...)`, `get(...)`, `list(...)` and `share(...)` // to build up your call. let rb = hub.albums();
Methods
impl<'a, C, A> AlbumMethods<'a, C, A>
[src]
impl<'a, C, A> AlbumMethods<'a, C, A>
Create a builder to help you perform the following task:
Marks an album as shared and accessible to other users. This action can only be performed on albums which were created by the developer via the API.
Arguments
request
- No description provided.albumId
- Identifier of the album to be shared. ThisalbumId
must belong to an album created by the developer.
pub fn list(&self) -> AlbumListCall<'a, C, A>
[src]
pub fn list(&self) -> AlbumListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists all albums shown to a user in the Albums tab of the Google Photos app.
pub fn add_enrichment(
&self,
request: AddEnrichmentToAlbumRequest,
album_id: &str
) -> AlbumAddEnrichmentCall<'a, C, A>
[src]
pub fn add_enrichment(
&self,
request: AddEnrichmentToAlbumRequest,
album_id: &str
) -> AlbumAddEnrichmentCall<'a, C, A>
Create a builder to help you perform the following task:
Adds an enrichment at a specified position in a defined album.
Arguments
request
- No description provided.albumId
- Identifier of the album where the enrichment is to be added.
pub fn create(&self, request: CreateAlbumRequest) -> AlbumCreateCall<'a, C, A>
[src]
pub fn create(&self, request: CreateAlbumRequest) -> AlbumCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Creates an album in a user's Google Photos library.
Arguments
request
- No description provided.
pub fn get(&self, album_id: &str) -> AlbumGetCall<'a, C, A>
[src]
pub fn get(&self, album_id: &str) -> AlbumGetCall<'a, C, A>
Create a builder to help you perform the following task:
Returns the album based on the specified albumId
or shareToken
.
Exactly one of albumId
and shareToken
must be set.
The albumId
should be the ID of an album owned by the user or a shared
album that the user has joined.
Arguments
albumId
- Identifier of the album to be requested. Must not be set ifshareToken
is set.
Trait Implementations
impl<'a, C, A> MethodsBuilder for AlbumMethods<'a, C, A>
[src]
impl<'a, C, A> MethodsBuilder for AlbumMethods<'a, C, A>
Auto Trait Implementations
impl<'a, C, A> !Send for AlbumMethods<'a, C, A>
impl<'a, C, A> !Send for AlbumMethods<'a, C, A>
impl<'a, C, A> !Sync for AlbumMethods<'a, C, A>
impl<'a, C, A> !Sync for AlbumMethods<'a, C, A>