Struct google_coordinate1::api::JobMethods
source · pub struct JobMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on job resources.
It is not used directly, but through the Coordinate
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_coordinate1 as coordinate1;
use std::default::Default;
use coordinate1::{Coordinate, 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 = Coordinate::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 `get(...)`, `insert(...)`, `list(...)`, `patch(...)` and `update(...)`
// to build up your call.
let rb = hub.jobs();
Implementations§
source§impl<'a, S> JobMethods<'a, S>
impl<'a, S> JobMethods<'a, S>
sourcepub fn get(&self, team_id: &str, job_id: u64) -> JobGetCall<'a, S>
pub fn get(&self, team_id: &str, job_id: u64) -> JobGetCall<'a, S>
Create a builder to help you perform the following task:
Retrieves a job, including all the changes made to the job.
§Arguments
teamId
- Team IDjobId
- Job number
sourcepub fn insert(
&self,
request: Job,
team_id: &str,
address: &str,
lat: f64,
lng: f64,
title: &str
) -> JobInsertCall<'a, S>
pub fn insert( &self, request: Job, team_id: &str, address: &str, lat: f64, lng: f64, title: &str ) -> JobInsertCall<'a, S>
Create a builder to help you perform the following task:
Inserts a new job. Only the state field of the job should be set.
§Arguments
request
- No description provided.teamId
- Team IDaddress
- Job address as newline (Unix) separated stringlat
- The latitude coordinate of this job’s location.lng
- The longitude coordinate of this job’s location.title
- Job title
sourcepub fn list(&self, team_id: &str) -> JobListCall<'a, S>
pub fn list(&self, team_id: &str) -> JobListCall<'a, S>
Create a builder to help you perform the following task:
Retrieves jobs created or modified since the given timestamp.
§Arguments
teamId
- Team ID
sourcepub fn patch(
&self,
request: Job,
team_id: &str,
job_id: u64
) -> JobPatchCall<'a, S>
pub fn patch( &self, request: Job, team_id: &str, job_id: u64 ) -> JobPatchCall<'a, S>
Create a builder to help you perform the following task:
Updates a job. Fields that are set in the job state will be updated. This method supports patch semantics.
§Arguments
request
- No description provided.teamId
- Team IDjobId
- Job number
sourcepub fn update(
&self,
request: Job,
team_id: &str,
job_id: u64
) -> JobUpdateCall<'a, S>
pub fn update( &self, request: Job, team_id: &str, job_id: u64 ) -> JobUpdateCall<'a, S>
Create a builder to help you perform the following task:
Updates a job. Fields that are set in the job state will be updated.
§Arguments
request
- No description provided.teamId
- Team IDjobId
- Job number