Struct google_adsensehost4d1::api::UrlchannelMethods
source · pub struct UrlchannelMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on urlchannel resources.
It is not used directly, but through the AdSenseHost
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_adsensehost4d1 as adsensehost4d1;
use std::default::Default;
use adsensehost4d1::{AdSenseHost, 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 = AdSenseHost::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 `delete(...)`, `insert(...)` and `list(...)`
// to build up your call.
let rb = hub.urlchannels();
Implementations§
source§impl<'a, S> UrlchannelMethods<'a, S>
impl<'a, S> UrlchannelMethods<'a, S>
sourcepub fn delete(
&self,
ad_client_id: &str,
url_channel_id: &str
) -> UrlchannelDeleteCall<'a, S>
pub fn delete( &self, ad_client_id: &str, url_channel_id: &str ) -> UrlchannelDeleteCall<'a, S>
Create a builder to help you perform the following task:
Delete a URL channel from the host AdSense account.
§Arguments
adClientId
- Ad client from which to delete the URL channel.urlChannelId
- URL channel to delete.
sourcepub fn insert(
&self,
request: UrlChannel,
ad_client_id: &str
) -> UrlchannelInsertCall<'a, S>
pub fn insert( &self, request: UrlChannel, ad_client_id: &str ) -> UrlchannelInsertCall<'a, S>
Create a builder to help you perform the following task:
Add a new URL channel to the host AdSense account.
§Arguments
request
- No description provided.adClientId
- Ad client to which the new URL channel will be added.
sourcepub fn list(&self, ad_client_id: &str) -> UrlchannelListCall<'a, S>
pub fn list(&self, ad_client_id: &str) -> UrlchannelListCall<'a, S>
Create a builder to help you perform the following task:
List all host URL channels in the host AdSense account.
§Arguments
adClientId
- Ad client for which to list URL channels.
Trait Implementations§
impl<'a, S> MethodsBuilder for UrlchannelMethods<'a, S>
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for UrlchannelMethods<'a, S>
impl<'a, S> Send for UrlchannelMethods<'a, S>where
S: Sync,
impl<'a, S> Sync for UrlchannelMethods<'a, S>where
S: Sync,
impl<'a, S> Unpin for UrlchannelMethods<'a, S>
impl<'a, S> !UnwindSafe for UrlchannelMethods<'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