Struct google_fusiontables2::TemplateMethods [−][src]
pub struct TemplateMethods<'a, C, A> where
C: 'a,
A: 'a, { /* fields omitted */ }
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 yup_oauth2 as oauth2; extern crate google_fusiontables2 as fusiontables2; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use fusiontables2::Fusiontables; 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 = Fusiontables::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 `delete(...)`, `get(...)`, `insert(...)`, `list(...)`, `patch(...)` and `update(...)` // to build up your call. let rb = hub.template();
Methods
impl<'a, C, A> TemplateMethods<'a, C, A>
[src]
impl<'a, C, A> TemplateMethods<'a, C, A>
pub fn update(
&self,
request: Template,
table_id: &str,
template_id: i32
) -> TemplateUpdateCall<'a, C, A>
[src]
pub fn update(
&self,
request: Template,
table_id: &str,
template_id: i32
) -> TemplateUpdateCall<'a, C, A>
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
pub fn list(&self, table_id: &str) -> TemplateListCall<'a, C, A>
[src]
pub fn list(&self, table_id: &str) -> TemplateListCall<'a, C, A>
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
pub fn delete(
&self,
table_id: &str,
template_id: i32
) -> TemplateDeleteCall<'a, C, A>
[src]
pub fn delete(
&self,
table_id: &str,
template_id: i32
) -> TemplateDeleteCall<'a, C, A>
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
pub fn insert(
&self,
request: Template,
table_id: &str
) -> TemplateInsertCall<'a, C, A>
[src]
pub fn insert(
&self,
request: Template,
table_id: &str
) -> TemplateInsertCall<'a, C, A>
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
pub fn patch(
&self,
request: Template,
table_id: &str,
template_id: i32
) -> TemplatePatchCall<'a, C, A>
[src]
pub fn patch(
&self,
request: Template,
table_id: &str,
template_id: i32
) -> TemplatePatchCall<'a, C, A>
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
pub fn get(&self, table_id: &str, template_id: i32) -> TemplateGetCall<'a, C, A>
[src]
pub fn get(&self, table_id: &str, template_id: i32) -> TemplateGetCall<'a, C, A>
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
Trait Implementations
impl<'a, C, A> MethodsBuilder for TemplateMethods<'a, C, A>
[src]
impl<'a, C, A> MethodsBuilder for TemplateMethods<'a, C, A>
Auto Trait Implementations
impl<'a, C, A> !Send for TemplateMethods<'a, C, A>
impl<'a, C, A> !Send for TemplateMethods<'a, C, A>
impl<'a, C, A> !Sync for TemplateMethods<'a, C, A>
impl<'a, C, A> !Sync for TemplateMethods<'a, C, A>