Struct google_fusiontables2::api::TemplateMethods
source · pub struct TemplateMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on template resources.
It is not used directly, but through the Fusiontables
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_fusiontables2 as fusiontables2;
use std::default::Default;
use fusiontables2::{Fusiontables, 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 = Fusiontables::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(...)`, `get(...)`, `insert(...)`, `list(...)`, `patch(...)` and `update(...)`
// to build up your call.
let rb = hub.template();
Implementations§
source§impl<'a, S> TemplateMethods<'a, S>
impl<'a, S> TemplateMethods<'a, S>
sourcepub fn delete(
&self,
table_id: &str,
template_id: i32
) -> TemplateDeleteCall<'a, S>
pub fn delete( &self, table_id: &str, template_id: i32 ) -> TemplateDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes a template
§Arguments
tableId
- Table from which the template is being deletedtemplateId
- Identifier for the template which is being deleted
sourcepub fn get(&self, table_id: &str, template_id: i32) -> TemplateGetCall<'a, S>
pub fn get(&self, table_id: &str, template_id: i32) -> TemplateGetCall<'a, S>
Create a builder to help you perform the following task:
Retrieves a specific template by its id
§Arguments
tableId
- Table to which the template belongstemplateId
- Identifier for the template that is being requested
sourcepub fn insert(
&self,
request: Template,
table_id: &str
) -> TemplateInsertCall<'a, S>
pub fn insert( &self, request: Template, table_id: &str ) -> TemplateInsertCall<'a, S>
Create a builder to help you perform the following task:
Creates a new template for the table.
§Arguments
request
- No description provided.tableId
- Table for which a new template is being created
sourcepub fn list(&self, table_id: &str) -> TemplateListCall<'a, S>
pub fn list(&self, table_id: &str) -> TemplateListCall<'a, S>
Create a builder to help you perform the following task:
Retrieves a list of templates.
§Arguments
tableId
- Identifier for the table whose templates are being requested
sourcepub fn patch(
&self,
request: Template,
table_id: &str,
template_id: i32
) -> TemplatePatchCall<'a, S>
pub fn patch( &self, request: Template, table_id: &str, template_id: i32 ) -> TemplatePatchCall<'a, S>
Create a builder to help you perform the following task:
Updates an existing template. This method supports patch semantics.
§Arguments
request
- No description provided.tableId
- Table to which the updated template belongstemplateId
- Identifier for the template that is being updated
sourcepub fn update(
&self,
request: Template,
table_id: &str,
template_id: i32
) -> TemplateUpdateCall<'a, S>
pub fn update( &self, request: Template, table_id: &str, template_id: i32 ) -> TemplateUpdateCall<'a, S>
Create a builder to help you perform the following task:
Updates an existing template
§Arguments
request
- No description provided.tableId
- Table to which the updated template belongstemplateId
- Identifier for the template that is being updated
Trait Implementations§
impl<'a, S> MethodsBuilder for TemplateMethods<'a, S>
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for TemplateMethods<'a, S>
impl<'a, S> Send for TemplateMethods<'a, S>where
S: Sync,
impl<'a, S> Sync for TemplateMethods<'a, S>where
S: Sync,
impl<'a, S> Unpin for TemplateMethods<'a, S>
impl<'a, S> !UnwindSafe for TemplateMethods<'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