Struct google_androidpublisher3::api::UserMethods
source · pub struct UserMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on user resources.
It is not used directly, but through the AndroidPublisher
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_androidpublisher3 as androidpublisher3;
use std::default::Default;
use androidpublisher3::{AndroidPublisher, 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 = AndroidPublisher::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 `create(...)`, `delete(...)`, `list(...)` and `patch(...)`
// to build up your call.
let rb = hub.users();
Implementations§
source§impl<'a, S> UserMethods<'a, S>
impl<'a, S> UserMethods<'a, S>
sourcepub fn create(&self, request: User, parent: &str) -> UserCreateCall<'a, S>
pub fn create(&self, request: User, parent: &str) -> UserCreateCall<'a, S>
Create a builder to help you perform the following task:
Grant access for a user to the given developer account.
§Arguments
request
- No description provided.parent
- Required. The developer account to add the user to. Format: developers/{developer}
sourcepub fn delete(&self, name: &str) -> UserDeleteCall<'a, S>
pub fn delete(&self, name: &str) -> UserDeleteCall<'a, S>
Create a builder to help you perform the following task:
Removes all access for the user to the given developer account.
§Arguments
name
- Required. The name of the user to delete. Format: developers/{developer}/users/{email}
sourcepub fn list(&self, parent: &str) -> UserListCall<'a, S>
pub fn list(&self, parent: &str) -> UserListCall<'a, S>
Create a builder to help you perform the following task:
Lists all users with access to a developer account.
§Arguments
parent
- Required. The developer account to fetch users from. Format: developers/{developer}
sourcepub fn patch(&self, request: User, name: &str) -> UserPatchCall<'a, S>
pub fn patch(&self, request: User, name: &str) -> UserPatchCall<'a, S>
Create a builder to help you perform the following task:
Updates access for the user to the developer account.
§Arguments
request
- No description provided.name
- Required. Resource name for this user, following the pattern “developers/{developer}/users/{email}”.
Trait Implementations§
impl<'a, S> MethodsBuilder for UserMethods<'a, S>
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for UserMethods<'a, S>
impl<'a, S> Send for UserMethods<'a, S>where
S: Sync,
impl<'a, S> Sync for UserMethods<'a, S>where
S: Sync,
impl<'a, S> Unpin for UserMethods<'a, S>
impl<'a, S> !UnwindSafe for UserMethods<'a, S>
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