Skip to content

Commit

Permalink
add support for utr in autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
vvillait88 committed Dec 17, 2024
1 parent b3eacf2 commit 7b4e0a5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src="https://i.imgur.com/S7DkZtr.png" width="250" alt="People Data Labs Logo">
<img src="https://www.peopledatalabs.com/images/company-logo.png" style="background-color: white; padding: 5px 10px;" width="250" alt="People Data Labs Logo">
</p>
<h1 align="center">People Data Labs Rust Client</h1>
<p align="center">Official Rust client for the People Data Labs API.</p>
Expand Down
1 change: 1 addition & 0 deletions examples/autocompete/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ fn main() {
field: "text".to_string(),
text: Some("full".to_string()),
titlecase: Some(false),
updated_title_roles: Some(false),
};
let autocomplete_params = AutocompleteParams {
base_params: None,
Expand Down
1 change: 1 addition & 0 deletions src/api/autocomplete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ mod tests {
field: "school".to_string(),
text: Some("stanf".to_string()),
titlecase: Some(false),
updated_title_roles: Some(false),
};

let autocomplete_params = AutocompleteParams {
Expand Down
3 changes: 3 additions & 0 deletions src/models/autocomplete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ pub struct AutocompleteBaseParams {
/// Setting titlecase to true will titlecase the data in 200 responses
#[serde(rename = "titlecase", skip_serializing_if = "Option::is_none")]
pub titlecase: Option<bool>,
/// If true, the response will return updated title tags
#[serde(rename = "updated_title_roles", default)]
pub updated_title_roles: Option<bool>,
}

#[derive(Debug, Serialize, Deserialize)]
Expand Down

0 comments on commit 7b4e0a5

Please sign in to comment.