Struct google_jobs4::api::JobQuery[][src]

pub struct JobQuery {
Show 14 fields pub commute_filter: Option<CommuteFilter>, pub companies: Option<Vec<String>>, pub company_display_names: Option<Vec<String>>, pub compensation_filter: Option<CompensationFilter>, pub custom_attribute_filter: Option<String>, pub disable_spell_check: Option<bool>, pub employment_types: Option<Vec<String>>, pub excluded_jobs: Option<Vec<String>>, pub job_categories: Option<Vec<String>>, pub language_codes: Option<Vec<String>>, pub location_filters: Option<Vec<LocationFilter>>, pub publish_time_range: Option<TimestampRange>, pub query: Option<String>, pub query_language_code: Option<String>,
}
Expand description

The query required to perform a search query.

This type is not used in any activity, and only used as part of another schema.

Fields

commute_filter: Option<CommuteFilter>

Allows filtering jobs by commute time with different travel methods (for example, driving or public transit). Note: This only works when you specify a CommuteMethod. In this case, location_filters is ignored. Currently we don’t support sorting by commute time.

companies: Option<Vec<String>>

This filter specifies the company entities to search against. If a value isn’t specified, jobs are searched for against all companies. If multiple values are specified, jobs are searched against the companies specified. The format is “projects/{project_id}/tenants/{tenant_id}/companies/{company_id}”. For example, “projects/foo/tenants/bar/companies/baz”. At most 20 company filters are allowed.

company_display_names: Option<Vec<String>>

This filter specifies the exact company Company.display_name of the jobs to search against. If a value isn’t specified, jobs within the search results are associated with any company. If multiple values are specified, jobs within the search results may be associated with any of the specified companies. At most 20 company display name filters are allowed.

compensation_filter: Option<CompensationFilter>

This search filter is applied only to Job.compensation_info. For example, if the filter is specified as “Hourly job with per-hour compensation > $15”, only jobs meeting these criteria are searched. If a filter isn’t defined, all open jobs are searched.

custom_attribute_filter: Option<String>

This filter specifies a structured syntax to match against the Job.custom_attributes marked as filterable. The syntax for this expression is a subset of SQL syntax. Supported operators are: =, !=, <, <=, >, and >= where the left of the operator is a custom field key and the right of the operator is a number or a quoted string. You must escape backslash (\) and quote (") characters. Supported functions are LOWER([field_name]) to perform a case insensitive match and EMPTY([field_name]) to filter on the existence of a key. Boolean expressions (AND/OR/NOT) are supported up to 3 levels of nesting (for example, “((A AND B AND C) OR NOT D) AND E”), a maximum of 100 comparisons or functions are allowed in the expression. The expression must be < 6000 bytes in length. Sample Query: (LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND driving_years > 10

disable_spell_check: Option<bool>

This flag controls the spell-check feature. If false, the service attempts to correct a misspelled query, for example, “enginee” is corrected to “engineer”. Defaults to false: a spell check is performed.

employment_types: Option<Vec<String>>

The employment type filter specifies the employment type of jobs to search against, such as EmploymentType.FULL_TIME. If a value isn’t specified, jobs in the search results includes any employment type. If multiple values are specified, jobs in the search results include any of the specified employment types.

excluded_jobs: Option<Vec<String>>

This filter specifies a list of job names to be excluded during search. At most 400 excluded job names are allowed.

job_categories: Option<Vec<String>>

The category filter specifies the categories of jobs to search against. See JobCategory for more information. If a value isn’t specified, jobs from any category are searched against. If multiple values are specified, jobs from any of the specified categories are searched against.

language_codes: Option<Vec<String>>

This filter specifies the locale of jobs to search against, for example, “en-US”. If a value isn’t specified, the search results can contain jobs in any locale. Language codes should be in BCP-47 format, such as “en-US” or “sr-Latn”. For more information, see Tags for Identifying Languages. At most 10 language code filters are allowed.

location_filters: Option<Vec<LocationFilter>>

The location filter specifies geo-regions containing the jobs to search against. See LocationFilter for more information. If a location value isn’t specified, jobs fitting the other search criteria are retrieved regardless of where they’re located. If multiple values are specified, jobs are retrieved from any of the specified locations. If different values are specified for the LocationFilter.distance_in_miles parameter, the maximum provided distance is used for all locations. At most 5 location filters are allowed.

publish_time_range: Option<TimestampRange>

Jobs published within a range specified by this filter are searched against.

query: Option<String>

The query string that matches against the job title, description, and location fields. The maximum number of allowed characters is 255.

query_language_code: Option<String>

The language code of query. For example, “en-US”. This field helps to better interpret the query. If a value isn’t specified, the query language code is automatically detected, which may not be accurate. Language code should be in BCP-47 format, such as “en-US” or “sr-Latn”. For more information, see Tags for Identifying Languages.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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

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

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.