pub struct ProjectMethods<'a, S>
where S: 'a,
{ /* private fields */ }
Expand description

A builder providing access to all methods supported on project resources. It is not used directly, but through the CloudTalentSolution hub.

§Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate google_jobs3 as jobs3;
 
use std::default::Default;
use jobs3::{CloudTalentSolution, 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 = CloudTalentSolution::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 `client_events_create(...)`, `companies_create(...)`, `companies_delete(...)`, `companies_get(...)`, `companies_list(...)`, `companies_patch(...)`, `complete(...)`, `jobs_batch_delete(...)`, `jobs_create(...)`, `jobs_delete(...)`, `jobs_get(...)`, `jobs_list(...)`, `jobs_patch(...)`, `jobs_search(...)` and `jobs_search_for_alert(...)`
// to build up your call.
let rb = hub.projects();

Implementations§

source§

impl<'a, S> ProjectMethods<'a, S>

source

pub fn client_events_create( &self, request: CreateClientEventRequest, parent: &str ) -> ProjectClientEventCreateCall<'a, S>

Create a builder to help you perform the following task:

Report events issued when end user interacts with customer’s application that uses Cloud Talent Solution. You may inspect the created events in self service tools. Learn more about self service tools.

§Arguments
  • request - No description provided.
  • parent - Parent project name.
source

pub fn companies_create( &self, request: CreateCompanyRequest, parent: &str ) -> ProjectCompanyCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a new company entity.

§Arguments
  • request - No description provided.
  • parent - Required. Resource name of the project under which the company is created. The format is “projects/{project_id}”, for example, “projects/api-test-project”.
source

pub fn companies_delete(&self, name: &str) -> ProjectCompanyDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes specified company. Prerequisite: The company has no jobs associated with it.

§Arguments
  • name - Required. The resource name of the company to be deleted. The format is “projects/{project_id}/companies/{company_id}”, for example, “projects/api-test-project/companies/foo”.
source

pub fn companies_get(&self, name: &str) -> ProjectCompanyGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves specified company.

§Arguments
  • name - Required. The resource name of the company to be retrieved. The format is “projects/{project_id}/companies/{company_id}”, for example, “projects/api-test-project/companies/foo”.
source

pub fn companies_list(&self, parent: &str) -> ProjectCompanyListCall<'a, S>

Create a builder to help you perform the following task:

Lists all companies associated with the service account.

§Arguments
  • parent - Required. Resource name of the project under which the company is created. The format is “projects/{project_id}”, for example, “projects/api-test-project”.
source

pub fn companies_patch( &self, request: UpdateCompanyRequest, name: &str ) -> ProjectCompanyPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates specified company. Company names can’t be updated. To update a company name, delete the company and all jobs associated with it, and only then re-create them.

§Arguments
  • request - No description provided.
  • name - Required during company update. The resource name for a company. This is generated by the service when a company is created. The format is “projects/{project_id}/companies/{company_id}”, for example, “projects/api-test-project/companies/foo”.
source

pub fn jobs_batch_delete( &self, request: BatchDeleteJobsRequest, parent: &str ) -> ProjectJobBatchDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes a list of Jobs by filter.

§Arguments
  • request - No description provided.
  • parent - Required. The resource name of the project under which the job is created. The format is “projects/{project_id}”, for example, “projects/api-test-project”.
source

pub fn jobs_create( &self, request: CreateJobRequest, parent: &str ) -> ProjectJobCreateCall<'a, S>

Create a builder to help you perform the following task:

Creates a new job. Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.

§Arguments
  • request - No description provided.
  • parent - Required. The resource name of the project under which the job is created. The format is “projects/{project_id}”, for example, “projects/api-test-project”.
source

pub fn jobs_delete(&self, name: &str) -> ProjectJobDeleteCall<'a, S>

Create a builder to help you perform the following task:

Deletes the specified job. Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.

§Arguments
  • name - Required. The resource name of the job to be deleted. The format is “projects/{project_id}/jobs/{job_id}”, for example, “projects/api-test-project/jobs/1234”.
source

pub fn jobs_get(&self, name: &str) -> ProjectJobGetCall<'a, S>

Create a builder to help you perform the following task:

Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.

§Arguments
  • name - Required. The resource name of the job to retrieve. The format is “projects/{project_id}/jobs/{job_id}”, for example, “projects/api-test-project/jobs/1234”.
source

pub fn jobs_list(&self, parent: &str) -> ProjectJobListCall<'a, S>

Create a builder to help you perform the following task:

Lists jobs by filter.

§Arguments
  • parent - Required. The resource name of the project under which the job is created. The format is “projects/{project_id}”, for example, “projects/api-test-project”.
source

pub fn jobs_patch( &self, request: UpdateJobRequest, name: &str ) -> ProjectJobPatchCall<'a, S>

Create a builder to help you perform the following task:

Updates specified job. Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.

§Arguments
  • request - No description provided.
  • name - Required during job update. The resource name for the job. This is generated by the service when a job is created. The format is “projects/{project_id}/jobs/{job_id}”, for example, “projects/api-test-project/jobs/1234”. Use of this field in job queries and API calls is preferred over the use of requisition_id since this value is unique.

Create a builder to help you perform the following task:

Searches for jobs using the provided SearchJobsRequest. This call constrains the visibility of jobs present in the database, and only returns jobs that the caller has permission to search against.

§Arguments
  • request - No description provided.
  • parent - Required. The resource name of the project to search within. The format is “projects/{project_id}”, for example, “projects/api-test-project”.
source

pub fn jobs_search_for_alert( &self, request: SearchJobsRequest, parent: &str ) -> ProjectJobSearchForAlertCall<'a, S>

Create a builder to help you perform the following task:

Searches for jobs using the provided SearchJobsRequest. This API call is intended for the use case of targeting passive job seekers (for example, job seekers who have signed up to receive email alerts about potential job opportunities), and has different algorithmic adjustments that are targeted to passive job seekers. This call constrains the visibility of jobs present in the database, and only returns jobs the caller has permission to search against.

§Arguments
  • request - No description provided.
  • parent - Required. The resource name of the project to search within. The format is “projects/{project_id}”, for example, “projects/api-test-project”.
source

pub fn complete(&self, name: &str) -> ProjectCompleteCall<'a, S>

Create a builder to help you perform the following task:

Completes the specified prefix with keyword suggestions. Intended for use by a job search auto-complete search box.

§Arguments
  • name - Required. Resource name of project the completion is performed within. The format is “projects/{project_id}”, for example, “projects/api-test-project”.

Trait Implementations§

source§

impl<'a, S> MethodsBuilder for ProjectMethods<'a, S>

Auto Trait Implementations§

§

impl<'a, S> !RefUnwindSafe for ProjectMethods<'a, S>

§

impl<'a, S> Send for ProjectMethods<'a, S>
where S: Sync,

§

impl<'a, S> Sync for ProjectMethods<'a, S>
where S: Sync,

§

impl<'a, S> Unpin for ProjectMethods<'a, S>

§

impl<'a, S> !UnwindSafe for ProjectMethods<'a, S>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more