Struct google_jobs4::api::CustomRankingInfo [−][src]
pub struct CustomRankingInfo {
pub importance_level: Option<String>,
pub ranking_expression: Option<String>,
}
Expand description
Custom ranking information for SearchJobsRequest.
This type is not used in any activity, and only used as part of another schema.
Fields
importance_level: Option<String>
Required. Controls over how important the score of CustomRankingInfo.ranking_expression gets applied to job’s final ranking position. An error is thrown if not specified.
ranking_expression: Option<String>
Required. Controls over how job documents get ranked on top of existing relevance score (determined by API algorithm). A combination of the ranking expression and relevance score is used to determine job’s final ranking position. The syntax for this expression is a subset of Google SQL syntax. Supported operators are: +, -, *, /, where the left and right side of the operator is either a numeric Job.custom_attributes key, integer/double value or an expression that can be evaluated to a number. Parenthesis are supported to adjust calculation precedence. The expression must be < 100 characters in length. The expression is considered invalid for a job if the expression references custom attributes that are not populated on the job or if the expression results in a divide by zero. If an expression is invalid for a job, that job is demoted to the end of the results. Sample ranking expression (year + 25) * 0.25 - (freshness / 0.5)
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for CustomRankingInfo
impl Send for CustomRankingInfo
impl Sync for CustomRankingInfo
impl Unpin for CustomRankingInfo
impl UnwindSafe for CustomRankingInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more