diff --git a/Cargo.toml b/Cargo.toml index 618d5bc..65ecd9d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "peopledatalabs" -version = "0.1.3" +version = "1.0.0" edition = "2021" description = "A Rust client for the People Data Labs API" documentation = "https://docs.peopledatalabs.com/docs/rust-sdk" diff --git a/examples/autocompete/main.rs b/examples/autocompete/main.rs index 89acc78..f2a7580 100644 --- a/examples/autocompete/main.rs +++ b/examples/autocompete/main.rs @@ -5,6 +5,8 @@ fn main() { let autocomplete_base_params = AutocompleteBaseParams { field: "text".to_string(), text: Some("full".to_string()), + titlecase: Some(false), + beta: Some(false), }; let autocomplete_params = AutocompleteParams { base_params: None, diff --git a/examples/job_title/main.rs b/examples/job_title/main.rs index 921be87..4be9ac0 100644 --- a/examples/job_title/main.rs +++ b/examples/job_title/main.rs @@ -4,6 +4,7 @@ fn main() { let client = PDL::new(); let job_title_base_params = JobTitleBaseParams { job_title: Some("software engineer".to_string()), + titlecase: Some(false), }; let params = JobTitleParams { base_params: None, diff --git a/examples/skill/main.rs b/examples/skill/main.rs index 46c166a..a0f5ef9 100644 --- a/examples/skill/main.rs +++ b/examples/skill/main.rs @@ -4,6 +4,7 @@ fn main() { let client = PDL::new(); let skill_base_params = SkillBaseParams { skill: Some("python".to_string()), + titlecase: Some(false), }; let params = SkillParams { base_params: None, diff --git a/src/api/autocomplete.rs b/src/api/autocomplete.rs index 0594e3e..2ab94a4 100644 --- a/src/api/autocomplete.rs +++ b/src/api/autocomplete.rs @@ -44,6 +44,8 @@ mod tests { let autocomplete_base_params = AutocompleteBaseParams { field: "school".to_string(), text: Some("stanf".to_string()), + titlecase: Some(false), + beta: Some(false), }; let autocomplete_params = AutocompleteParams { diff --git a/src/api/jobtitle.rs b/src/api/jobtitle.rs index 129d813..528129f 100644 --- a/src/api/jobtitle.rs +++ b/src/api/jobtitle.rs @@ -35,6 +35,7 @@ mod tests { let job_title_base_params = JobTitleBaseParams { job_title: Some("data scientist".to_string()), + titlecase: Some(false), }; let job_title_params = JobTitleParams { diff --git a/src/api/skills.rs b/src/api/skills.rs index a490aac..0b85fd6 100644 --- a/src/api/skills.rs +++ b/src/api/skills.rs @@ -34,6 +34,7 @@ mod tests { let skill_base_params = SkillBaseParams { skill: Some("rust".to_string()), + titlecase: Some(false), }; let skill_params = SkillParams { diff --git a/src/models/autocomplete.rs b/src/models/autocomplete.rs index 0ecb8cb..5668474 100644 --- a/src/models/autocomplete.rs +++ b/src/models/autocomplete.rs @@ -10,6 +10,12 @@ pub struct AutocompleteBaseParams { /// Text that is used as the seed for autocompletion #[serde(rename = "text", default)] pub text: Option, + /// Setting titlecase to true will titlecase the data in 200 responses + #[serde(rename = "titlecase", skip_serializing_if = "Option::is_none")] + pub titlecase: Option, + /// Setting beta to true will enable the beta autocomplete endpoint + #[serde(rename = "beta", skip_serializing_if = "Option::is_none")] + pub beta: Option, } #[derive(Debug, Serialize, Deserialize)] diff --git a/src/models/jobtitle.rs b/src/models/jobtitle.rs index 0557dc9..509abcb 100644 --- a/src/models/jobtitle.rs +++ b/src/models/jobtitle.rs @@ -7,6 +7,9 @@ pub struct JobTitleBaseParams { /// JobTitle that is used as the seed for enrichment #[serde(rename = "job_title", default)] pub job_title: Option, + /// Setting titlecase to true will titlecase the data in 200 responses + #[serde(rename = "titlecase", skip_serializing_if = "Option::is_none")] + pub titlecase: Option, } #[derive(Debug, Serialize, Deserialize)] diff --git a/src/models/skills.rs b/src/models/skills.rs index 3fb17fd..9596cd5 100644 --- a/src/models/skills.rs +++ b/src/models/skills.rs @@ -7,6 +7,9 @@ pub struct SkillBaseParams { /// Skill that is used as the seed for enrichment #[serde(rename = "skill", default)] pub skill: Option, + /// Setting titlecase to true will titlecase the data in 200 responses + #[serde(rename = "titlecase", skip_serializing_if = "Option::is_none")] + pub titlecase: Option, } #[derive(Debug, Serialize, Deserialize)]