Struct google_fusiontables2::api::TableMethods
source · pub struct TableMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on table 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 `copy(...)`, `delete(...)`, `get(...)`, `import_rows(...)`, `import_table(...)`, `insert(...)`, `list(...)`, `patch(...)`, `refetch_sheet(...)`, `replace_rows(...)` and `update(...)`
// to build up your call.
let rb = hub.table();
Implementations§
source§impl<'a, S> TableMethods<'a, S>
impl<'a, S> TableMethods<'a, S>
sourcepub fn copy(&self, table_id: &str) -> TableCopyCall<'a, S>
pub fn copy(&self, table_id: &str) -> TableCopyCall<'a, S>
Create a builder to help you perform the following task:
Copies a table.
§Arguments
tableId
- ID of the table that is being copied.
sourcepub fn delete(&self, table_id: &str) -> TableDeleteCall<'a, S>
pub fn delete(&self, table_id: &str) -> TableDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes a table.
§Arguments
tableId
- ID of the table to be deleted.
sourcepub fn get(&self, table_id: &str) -> TableGetCall<'a, S>
pub fn get(&self, table_id: &str) -> TableGetCall<'a, S>
Create a builder to help you perform the following task:
Retrieves a specific table by its ID.
§Arguments
tableId
- Identifier for the table being requested.
sourcepub fn import_rows(&self, table_id: &str) -> TableImportRowCall<'a, S>
pub fn import_rows(&self, table_id: &str) -> TableImportRowCall<'a, S>
Create a builder to help you perform the following task:
Imports more rows into a table.
§Arguments
tableId
- The table into which new rows are being imported.
sourcepub fn import_table(&self, name: &str) -> TableImportTableCall<'a, S>
pub fn import_table(&self, name: &str) -> TableImportTableCall<'a, S>
Create a builder to help you perform the following task:
Imports a new table.
§Arguments
name
- The name to be assigned to the new table.
sourcepub fn insert(&self, request: Table) -> TableInsertCall<'a, S>
pub fn insert(&self, request: Table) -> TableInsertCall<'a, S>
Create a builder to help you perform the following task:
Creates a new table.
§Arguments
request
- No description provided.
sourcepub fn list(&self) -> TableListCall<'a, S>
pub fn list(&self) -> TableListCall<'a, S>
Create a builder to help you perform the following task:
Retrieves a list of tables a user owns.
sourcepub fn patch(&self, request: Table, table_id: &str) -> TablePatchCall<'a, S>
pub fn patch(&self, request: Table, table_id: &str) -> TablePatchCall<'a, S>
Create a builder to help you perform the following task:
Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated. This method supports patch semantics.
§Arguments
request
- No description provided.tableId
- ID of the table that is being updated.
sourcepub fn refetch_sheet(&self, table_id: &str) -> TableRefetchSheetCall<'a, S>
pub fn refetch_sheet(&self, table_id: &str) -> TableRefetchSheetCall<'a, S>
Create a builder to help you perform the following task:
Replaces rows of the table with the rows of the spreadsheet that is first imported from. Current rows remain visible until all replacement rows are ready.
§Arguments
tableId
- Table whose rows will be replaced from the spreadsheet.
sourcepub fn replace_rows(&self, table_id: &str) -> TableReplaceRowCall<'a, S>
pub fn replace_rows(&self, table_id: &str) -> TableReplaceRowCall<'a, S>
Create a builder to help you perform the following task:
Replaces rows of an existing table. Current rows remain visible until all replacement rows are ready.
§Arguments
tableId
- Table whose rows will be replaced.
sourcepub fn update(&self, request: Table, table_id: &str) -> TableUpdateCall<'a, S>
pub fn update(&self, request: Table, table_id: &str) -> TableUpdateCall<'a, S>
Create a builder to help you perform the following task:
Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated.
§Arguments
request
- No description provided.tableId
- ID of the table that is being updated.