[][src]Struct google_adexchangebuyer1d4::ProposalMethods

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

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

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_adexchangebuyer1d4 as adexchangebuyer1d4;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use adexchangebuyer1d4::AdExchangeBuyer;
 
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 = AdExchangeBuyer::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 `get(...)`, `insert(...)`, `patch(...)`, `search(...)`, `setupcomplete(...)` and `update(...)`
// to build up your call.
let rb = hub.proposals();

Implementations

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

pub fn search(&self) -> ProposalSearchCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Search for proposals using pql query

pub fn insert(
    &self,
    request: CreateOrdersRequest
) -> ProposalInsertCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Create the given list of proposals

Arguments

  • request - No description provided.

pub fn update(
    &self,
    request: Proposal,
    proposal_id: &str,
    revision_number: &str,
    update_action: &str
) -> ProposalUpdateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Update the given proposal

Arguments

  • request - No description provided.
  • proposalId - The proposal id to update.
  • revisionNumber - The last known revision number to update. If the head revision in the marketplace database has since changed, an error will be thrown. The caller should then fetch the latest proposal at head revision and retry the update at that revision.
  • updateAction - The proposed action to take on the proposal. This field is required and it must be set when updating a proposal.

pub fn setupcomplete(
    &self,
    proposal_id: &str
) -> ProposalSetupcompleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Update the given proposal to indicate that setup has been completed.

Arguments

  • proposalId - The proposal id for which the setup is complete

pub fn patch(
    &self,
    request: Proposal,
    proposal_id: &str,
    revision_number: &str,
    update_action: &str
) -> ProposalPatchCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Update the given proposal. This method supports patch semantics.

Arguments

  • request - No description provided.
  • proposalId - The proposal id to update.
  • revisionNumber - The last known revision number to update. If the head revision in the marketplace database has since changed, an error will be thrown. The caller should then fetch the latest proposal at head revision and retry the update at that revision.
  • updateAction - The proposed action to take on the proposal. This field is required and it must be set when updating a proposal.

pub fn get(&self, proposal_id: &str) -> ProposalGetCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Get a proposal given its id

Arguments

  • proposalId - Id of the proposal to retrieve.

Trait Implementations

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

Auto Trait Implementations

impl<'a, C, A> !RefUnwindSafe for ProposalMethods<'a, C, A>

impl<'a, C, A> !Send for ProposalMethods<'a, C, A>

impl<'a, C, A> !Sync for ProposalMethods<'a, C, A>

impl<'a, C, A> Unpin for ProposalMethods<'a, C, A>

impl<'a, C, A> !UnwindSafe for ProposalMethods<'a, C, A>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any