Struct google_photoslibrary1::api::SharedAlbumMethods
source · pub struct SharedAlbumMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on sharedAlbum 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 google_photoslibrary1 as photoslibrary1;
use std::default::Default;
use photoslibrary1::{PhotosLibrary, oauth2, hyper, hyper_rustls, chrono, FieldMask};
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = PhotosLibrary::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `get(...)`, `join(...)`, `leave(...)` and `list(...)`
// to build up your call.
let rb = hub.shared_albums();
Implementations§
sourcepub fn get(&self, share_token: &str) -> SharedAlbumGetCall<'a, S>
pub fn get(&self, share_token: &str) -> SharedAlbumGetCall<'a, S>
Create a builder to help you perform the following task:
Returns the album based on the specified shareToken
.
§Arguments
shareToken
- Required. Share token of the album to be requested.
sourcepub fn join(
&self,
request: JoinSharedAlbumRequest
) -> SharedAlbumJoinCall<'a, S>
pub fn join( &self, request: JoinSharedAlbumRequest ) -> SharedAlbumJoinCall<'a, S>
Create a builder to help you perform the following task:
Joins a shared album on behalf of the Google Photos user.
§Arguments
request
- No description provided.
sourcepub fn leave(
&self,
request: LeaveSharedAlbumRequest
) -> SharedAlbumLeaveCall<'a, S>
pub fn leave( &self, request: LeaveSharedAlbumRequest ) -> SharedAlbumLeaveCall<'a, S>
Create a builder to help you perform the following task:
Leaves a previously-joined shared album on behalf of the Google Photos user. The user must not own this album.
§Arguments
request
- No description provided.
sourcepub fn list(&self) -> SharedAlbumListCall<'a, S>
pub fn list(&self) -> SharedAlbumListCall<'a, S>
Create a builder to help you perform the following task:
Lists all shared albums available in the Sharing tab of the user’s Google Photos app.
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more