Struct google_youtubereporting1::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 YouTubeReporting
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_youtubereporting1 as youtubereporting1;
use std::default::Default;
use youtubereporting1::{YouTubeReporting, 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 = YouTubeReporting::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 `create(...)`, `delete(...)`, `get(...)`, `list(...)`, `reports_get(...)` and `reports_list(...)`
// 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 reports_get(
&self,
job_id: &str,
report_id: &str
) -> JobReportGetCall<'a, S>
pub fn reports_get( &self, job_id: &str, report_id: &str ) -> JobReportGetCall<'a, S>
Create a builder to help you perform the following task:
Gets the metadata of a specific report.
§Arguments
jobId
- The ID of the job.reportId
- The ID of the report to retrieve.
sourcepub fn reports_list(&self, job_id: &str) -> JobReportListCall<'a, S>
pub fn reports_list(&self, job_id: &str) -> JobReportListCall<'a, S>
Create a builder to help you perform the following task:
Lists reports created by a specific job. Returns NOT_FOUND if the job does not exist.
§Arguments
jobId
- The ID of the job.
sourcepub fn create(&self, request: Job) -> JobCreateCall<'a, S>
pub fn create(&self, request: Job) -> JobCreateCall<'a, S>
Create a builder to help you perform the following task:
Creates a job and returns it.
§Arguments
request
- No description provided.
sourcepub fn delete(&self, job_id: &str) -> JobDeleteCall<'a, S>
pub fn delete(&self, job_id: &str) -> JobDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes a job.
§Arguments
jobId
- The ID of the job to delete.
sourcepub fn get(&self, job_id: &str) -> JobGetCall<'a, S>
pub fn get(&self, job_id: &str) -> JobGetCall<'a, S>
Create a builder to help you perform the following task:
Gets a job.
§Arguments
jobId
- The ID of the job to retrieve.
sourcepub fn list(&self) -> JobListCall<'a, S>
pub fn list(&self) -> JobListCall<'a, S>
Create a builder to help you perform the following task:
Lists jobs.
Trait Implementations§
impl<'a, S> MethodsBuilder for JobMethods<'a, S>
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for JobMethods<'a, S>
impl<'a, S> Send for JobMethods<'a, S>where
S: Sync,
impl<'a, S> Sync for JobMethods<'a, S>where
S: Sync,
impl<'a, S> Unpin for JobMethods<'a, S>
impl<'a, S> !UnwindSafe for JobMethods<'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