Struct google_fusiontables2::api::TaskMethods
source · pub struct TaskMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on task 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(...)` and `list(...)`
// to build up your call.
let rb = hub.task();
Implementations§
source§impl<'a, S> TaskMethods<'a, S>
impl<'a, S> TaskMethods<'a, S>
sourcepub fn delete(&self, table_id: &str, task_id: &str) -> TaskDeleteCall<'a, S>
pub fn delete(&self, table_id: &str, task_id: &str) -> TaskDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes a specific task by its ID, unless that task has already started running.
§Arguments
tableId
- Table from which the task is being deleted.taskId
- The identifier of the task to delete.
sourcepub fn get(&self, table_id: &str, task_id: &str) -> TaskGetCall<'a, S>
pub fn get(&self, table_id: &str, task_id: &str) -> TaskGetCall<'a, S>
Create a builder to help you perform the following task:
Retrieves a specific task by its ID.
§Arguments
tableId
- Table to which the task belongs.taskId
- The identifier of the task to get.
sourcepub fn list(&self, table_id: &str) -> TaskListCall<'a, S>
pub fn list(&self, table_id: &str) -> TaskListCall<'a, S>
Create a builder to help you perform the following task:
Retrieves a list of tasks.
§Arguments
tableId
- Table whose tasks are being listed.
Trait Implementations§
impl<'a, S> MethodsBuilder for TaskMethods<'a, S>
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for TaskMethods<'a, S>
impl<'a, S> Send for TaskMethods<'a, S>where
S: Sync,
impl<'a, S> Sync for TaskMethods<'a, S>where
S: Sync,
impl<'a, S> Unpin for TaskMethods<'a, S>
impl<'a, S> !UnwindSafe for TaskMethods<'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