pub struct CreativeFieldMethods<'a, C>where
C: 'a,{ /* private fields */ }Expand description
A builder providing access to all methods supported on creativeField resources.
It is not used directly, but through the Dfareporting hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_dfareporting3 as dfareporting3;
use dfareporting3::{Dfareporting, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let connector = hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_only()
.enable_http2()
.build();
let executor = hyper_util::rt::TokioExecutor::new();
let auth = yup_oauth2::InstalledFlowAuthenticator::with_client(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
yup_oauth2::client::CustomHyperClientBuilder::from(
hyper_util::client::legacy::Client::builder(executor).build(connector),
),
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http2()
.build()
);
let mut hub = Dfareporting::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `delete(...)`, `get(...)`, `insert(...)`, `list(...)`, `patch(...)` and `update(...)`
// to build up your call.
let rb = hub.creative_fields();Implementations§
Source§impl<'a, C> CreativeFieldMethods<'a, C>
impl<'a, C> CreativeFieldMethods<'a, C>
Sourcepub fn delete(&self, profile_id: i64, id: i64) -> CreativeFieldDeleteCall<'a, C>
pub fn delete(&self, profile_id: i64, id: i64) -> CreativeFieldDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes an existing creative field.
§Arguments
profileId- User profile ID associated with this request.id- Creative Field ID
Sourcepub fn get(&self, profile_id: i64, id: i64) -> CreativeFieldGetCall<'a, C>
pub fn get(&self, profile_id: i64, id: i64) -> CreativeFieldGetCall<'a, C>
Create a builder to help you perform the following task:
Gets one creative field by ID.
§Arguments
profileId- User profile ID associated with this request.id- Creative Field ID
Sourcepub fn insert(
&self,
request: CreativeField,
profile_id: i64,
) -> CreativeFieldInsertCall<'a, C>
pub fn insert( &self, request: CreativeField, profile_id: i64, ) -> CreativeFieldInsertCall<'a, C>
Create a builder to help you perform the following task:
Inserts a new creative field.
§Arguments
request- No description provided.profileId- User profile ID associated with this request.
Sourcepub fn list(&self, profile_id: i64) -> CreativeFieldListCall<'a, C>
pub fn list(&self, profile_id: i64) -> CreativeFieldListCall<'a, C>
Create a builder to help you perform the following task:
Retrieves a list of creative fields, possibly filtered. This method supports paging.
§Arguments
profileId- User profile ID associated with this request.
Sourcepub fn patch(
&self,
request: CreativeField,
profile_id: i64,
id: i64,
) -> CreativeFieldPatchCall<'a, C>
pub fn patch( &self, request: CreativeField, profile_id: i64, id: i64, ) -> CreativeFieldPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates an existing creative field. This method supports patch semantics.
§Arguments
request- No description provided.profileId- User profile ID associated with this request.id- Creative Field ID
Sourcepub fn update(
&self,
request: CreativeField,
profile_id: i64,
) -> CreativeFieldUpdateCall<'a, C>
pub fn update( &self, request: CreativeField, profile_id: i64, ) -> CreativeFieldUpdateCall<'a, C>
Create a builder to help you perform the following task:
Updates an existing creative field.
§Arguments
request- No description provided.profileId- User profile ID associated with this request.