diff --git a/Cargo.toml b/Cargo.toml index 3d773cb..12547d1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "peopledatalabs" -version = "2.0.1" +version = "2.1.0" edition = "2021" description = "A Rust client for the People Data Labs API" documentation = "https://docs.peopledatalabs.com/docs/rust-sdk" diff --git a/src/api/person.rs b/src/api/person.rs index 6557f66..77dcae8 100644 --- a/src/api/person.rs +++ b/src/api/person.rs @@ -300,7 +300,7 @@ mod tests { assert_eq!(resp.status, 200); assert_eq!(resp.data.unwrap().len(), num_results); - assert_eq!(resp.scroll_token.is_empty(), false); + assert_eq!(resp.scroll_token.is_some() && !resp.scroll_token.as_ref().unwrap().is_empty(), true); } #[test] diff --git a/src/models/person.rs b/src/models/person.rs index e013751..7c9ded0 100644 --- a/src/models/person.rs +++ b/src/models/person.rs @@ -363,7 +363,7 @@ pub struct SearchPersonResponse { pub data: Option>, pub total: i32, - pub scroll_token: String, + pub scroll_token: Option, } #[derive(Debug, Serialize, Deserialize)]