File tree 10 files changed +21
-1
lines changed
10 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " peopledatalabs"
3
- version = " 0.1.3 "
3
+ version = " 1.0.0 "
4
4
edition = " 2021"
5
5
description = " A Rust client for the People Data Labs API"
6
6
documentation = " https://docs.peopledatalabs.com/docs/rust-sdk"
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ fn main() {
5
5
let autocomplete_base_params = AutocompleteBaseParams {
6
6
field : "text" . to_string ( ) ,
7
7
text : Some ( "full" . to_string ( ) ) ,
8
+ titlecase : Some ( false ) ,
9
+ beta : Some ( false ) ,
8
10
} ;
9
11
let autocomplete_params = AutocompleteParams {
10
12
base_params : None ,
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ fn main() {
4
4
let client = PDL :: new ( ) ;
5
5
let job_title_base_params = JobTitleBaseParams {
6
6
job_title : Some ( "software engineer" . to_string ( ) ) ,
7
+ titlecase : Some ( false ) ,
7
8
} ;
8
9
let params = JobTitleParams {
9
10
base_params : None ,
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ fn main() {
4
4
let client = PDL :: new ( ) ;
5
5
let skill_base_params = SkillBaseParams {
6
6
skill : Some ( "python" . to_string ( ) ) ,
7
+ titlecase : Some ( false ) ,
7
8
} ;
8
9
let params = SkillParams {
9
10
base_params : None ,
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ mod tests {
44
44
let autocomplete_base_params = AutocompleteBaseParams {
45
45
field : "school" . to_string ( ) ,
46
46
text : Some ( "stanf" . to_string ( ) ) ,
47
+ titlecase : Some ( false ) ,
48
+ beta : Some ( false ) ,
47
49
} ;
48
50
49
51
let autocomplete_params = AutocompleteParams {
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ mod tests {
35
35
36
36
let job_title_base_params = JobTitleBaseParams {
37
37
job_title : Some ( "data scientist" . to_string ( ) ) ,
38
+ titlecase : Some ( false ) ,
38
39
} ;
39
40
40
41
let job_title_params = JobTitleParams {
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ mod tests {
34
34
35
35
let skill_base_params = SkillBaseParams {
36
36
skill : Some ( "rust" . to_string ( ) ) ,
37
+ titlecase : Some ( false ) ,
37
38
} ;
38
39
39
40
let skill_params = SkillParams {
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ pub struct AutocompleteBaseParams {
10
10
/// Text that is used as the seed for autocompletion
11
11
#[ serde( rename = "text" , default ) ]
12
12
pub text : Option < String > ,
13
+ /// Setting titlecase to true will titlecase the data in 200 responses
14
+ #[ serde( rename = "titlecase" , skip_serializing_if = "Option::is_none" ) ]
15
+ pub titlecase : Option < bool > ,
16
+ /// Setting beta to true will enable the beta autocomplete endpoint
17
+ #[ serde( rename = "beta" , skip_serializing_if = "Option::is_none" ) ]
18
+ pub beta : Option < bool > ,
13
19
}
14
20
15
21
#[ derive( Debug , Serialize , Deserialize ) ]
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ pub struct JobTitleBaseParams {
7
7
/// JobTitle that is used as the seed for enrichment
8
8
#[ serde( rename = "job_title" , default ) ]
9
9
pub job_title : Option < String > ,
10
+ /// Setting titlecase to true will titlecase the data in 200 responses
11
+ #[ serde( rename = "titlecase" , skip_serializing_if = "Option::is_none" ) ]
12
+ pub titlecase : Option < bool > ,
10
13
}
11
14
12
15
#[ derive( Debug , Serialize , Deserialize ) ]
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ pub struct SkillBaseParams {
7
7
/// Skill that is used as the seed for enrichment
8
8
#[ serde( rename = "skill" , default ) ]
9
9
pub skill : Option < String > ,
10
+ /// Setting titlecase to true will titlecase the data in 200 responses
11
+ #[ serde( rename = "titlecase" , skip_serializing_if = "Option::is_none" ) ]
12
+ pub titlecase : Option < bool > ,
10
13
}
11
14
12
15
#[ derive( Debug , Serialize , Deserialize ) ]
You can’t perform that action at this time.
0 commit comments