Struct searchspot::resources::Talent [] [src]

pub struct Talent {
    pub id: u32,
    pub accepted: bool,
    pub desired_work_roles: Vec<String>,
    pub desired_work_roles_vanilla: Option<Vec<String>>,
    pub desired_work_roles_experience: Vec<String>,
    pub professional_experience: String,
    pub work_locations: Vec<String>,
    pub current_location: String,
    pub work_authorization: String,
    pub skills: Vec<String>,
    pub summary: String,
    pub headline: String,
    pub contacted_company_ids: Vec<u32>,
    pub batch_starts_at: String,
    pub batch_ends_at: String,
    pub added_to_batch_at: String,
    pub weight: i32,
    pub blocked_companies: Vec<u32>,
    pub work_experiences: Vec<String>,
    pub avatar_url: String,
    pub salary_expectations: Vec<SalaryExpectations>,
    pub latest_position: String,
    pub languages: Vec<String>,
}

The talent that will be indexed into ElasticSearch.

Fields

Methods

impl Talent
[src]

[src]

Return a Vec<Query> with visibility criteria for the talents. The epoch must be given as I64 (UNIX time in seconds) and is the range in which batches are searched. If presented_talents is provided, talents who match the IDs contained there skip the standard visibility criteria.

Basically, the talents must be accepted into the platform and must be inside a living batch to match the visibility criteria.

[src]

Given parameters inside the query string mapped inside a Map, and the epoch (defined as UNIX time in seconds) for batches, return a Query for ElasticSearch.

Considering a single row, the terms inside there are ORred, while through the rows there is an AND. I.e.: given ["Fullstack", "DevOps"] as desired_work_roles, found talents will present at least one of these roles), but both desired_work_roles and work_location, if provided, must be matched successfully.

[src]

Return a Sort that makes values be sorted for given fields, descendently.

Trait Implementations

impl Debug for Talent
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Talent
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Resource for Talent
[src]

[src]

Populate the ElasticSearch index with Vec<Talent>

[src]

Query ElasticSearch on given indexes and params and return the IDs of the found talents.

[src]

Delete the talent associated to given id.

[src]

Reset the given index. All the data will be destroyed and then the index will be created again. The map that will be used is hardcoded.

Auto Trait Implementations

impl Send for Talent

impl Sync for Talent