From 37bf4fd5693daf63ae4439a48ad5d004ce1b791f Mon Sep 17 00:00:00 2001 From: Syfaro Date: Fri, 10 Feb 2023 23:14:21 -0500 Subject: [PATCH] Fix fields not being public. --- bkapi-client/src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bkapi-client/src/lib.rs b/bkapi-client/src/lib.rs index a25c738..bc3f2fd 100644 --- a/bkapi-client/src/lib.rs +++ b/bkapi-client/src/lib.rs @@ -119,8 +119,10 @@ pub struct BKApiNatsClient { /// A hash and distance. #[derive(serde::Serialize, serde::Deserialize)] pub struct HashDistance { - hash: i64, - distance: u32, + /// Hash to search. + pub hash: i64, + /// Maximum distance from hash to include in results. + pub distance: u32, } impl BKApiNatsClient {