Struct google_manufacturers1::AccountMethods [] [src]

pub struct AccountMethods<'a, C, A> where C: 'a, A: 'a { /* fields omitted */ }

A builder providing access to all methods supported on account resources. It is not used directly, but through the ManufacturerCenter hub.

Example

Instantiate a resource builder

extern crate hyper;
extern crate yup_oauth2 as oauth2;
extern crate google_manufacturers1 as manufacturers1;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use manufacturers1::ManufacturerCenter;
 
let secret: ApplicationSecret = Default::default();
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
                              hyper::Client::new(),
                              <MemoryStorage as Default>::default(), None);
let mut hub = ManufacturerCenter::new(hyper::Client::new(), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `products_get(...)` and `products_list(...)`
// to build up your call.
let rb = hub.accounts();

Methods

impl<'a, C, A> AccountMethods<'a, C, A>
[src]

Create a builder to help you perform the following task:

Lists all the products in a Manufacturer Center account.

Arguments

  • parent - Parent ID in the format accounts/{account_id}. account_id - The ID of the Manufacturer Center account.

Create a builder to help you perform the following task:

Gets the product from a Manufacturer Center account, including product issues.

Arguments

  • parent - Parent ID in the format accounts/{account_id}. account_id - The ID of the Manufacturer Center account.
  • name - Name in the format {target_country}:{content_language}:{product_id}. target_country - The target country of the product as a CLDR territory code (for example, US). content_language - The content language of the product as a two-letter ISO 639-1 language code (for example, en). product_id - The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id.

Trait Implementations

impl<'a, C, A> MethodsBuilder for AccountMethods<'a, C, A>
[src]