@@ -101,7 +101,7 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
101
101
* @description returns an Option<BoundedVec> which will be null if the key does not exist
102
102
* @note the `StringBytes` parameter defines the maximum allowable length of the returned string
103
103
**/
104
- pub ( crate ) fn get_string <let KeyBytes : u32 , let StringBytes : u32 >(
104
+ pub fn get_string <let KeyBytes : u32 , let StringBytes : u32 >(
105
105
self ,
106
106
key : [u8 ; KeyBytes ],
107
107
) -> Option <BoundedVec <u8 , StringBytes >> {
@@ -128,7 +128,7 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
128
128
* @description will revert if the string does not exist
129
129
* @note the `StringBytes` parameter defines the maximum allowable length of the returned string
130
130
**/
131
- pub ( crate ) fn get_string_unchecked <let KeyBytes : u32 , let StringBytes : u32 >(
131
+ pub fn get_string_unchecked <let KeyBytes : u32 , let StringBytes : u32 >(
132
132
self ,
133
133
key : [u8 ; KeyBytes ],
134
134
) -> BoundedVec <u8 , StringBytes > {
@@ -147,7 +147,7 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
147
147
/**
148
148
* @brief same as `get_string` for where the key length may be less than KeyBytes
149
149
**/
150
- pub ( crate ) fn get_string_var <let KeyBytes : u32 , let StringBytes : u32 >(
150
+ pub fn get_string_var <let KeyBytes : u32 , let StringBytes : u32 >(
151
151
self ,
152
152
key : BoundedVec <u8 , KeyBytes >,
153
153
) -> Option <BoundedVec <u8 , StringBytes >> {
@@ -171,7 +171,7 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
171
171
/**
172
172
* @brief same as `get_string_unchecked` for where the key length may be less than KeyBytes
173
173
**/
174
- pub ( crate ) fn get_string_unchecked_var <let KeyBytes : u32 , let StringBytes : u32 >(
174
+ pub fn get_string_unchecked_var <let KeyBytes : u32 , let StringBytes : u32 >(
175
175
self ,
176
176
key : BoundedVec <u8 , KeyBytes >,
177
177
) -> BoundedVec <u8 , StringBytes > {
@@ -191,7 +191,7 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
191
191
* @brief if the root JSON is an array, extract a string given by the position of the target in the source array
192
192
* @description returns an Option<BoundedVec> which will be null if the string does not exist
193
193
**/
194
- pub ( crate ) fn get_string_from_array <let StringBytes : u32 >(
194
+ pub fn get_string_from_array <let StringBytes : u32 >(
195
195
self ,
196
196
array_index : Field ,
197
197
) -> Option <BoundedVec <u8 , StringBytes >> {
@@ -231,7 +231,7 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
231
231
* @brief if the root JSON is an array, extract a string given by the position of the target in the source array
232
232
* @description will revert if the string does not exist
233
233
**/
234
- pub ( crate ) fn get_string_from_array_unchecked <let StringBytes : u32 >(
234
+ pub fn get_string_from_array_unchecked <let StringBytes : u32 >(
235
235
self ,
236
236
array_index : Field ,
237
237
) -> BoundedVec <u8 , StringBytes > {
@@ -264,7 +264,7 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
264
264
/**
265
265
* @brief if the root JSON is an object, get a nested string out of the JSON, which may be several keys deep
266
266
**/
267
- pub ( crate ) fn get_string_from_path <let KeyBytes : u32 , let StringBytes : u32 , let PathDepth : u32 >(
267
+ pub fn get_string_from_path <let KeyBytes : u32 , let StringBytes : u32 , let PathDepth : u32 >(
268
268
self ,
269
269
keys : [BoundedVec <u8 , KeyBytes >; PathDepth ],
270
270
) -> Option <BoundedVec <u8 , StringBytes >> {
@@ -290,7 +290,7 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
290
290
* @description returns an Option<JSONValue> which will be null if the key does not exist
291
291
* @note the `StringBytes` parameter defines the maximum allowable length of the returned value
292
292
**/
293
- pub ( crate ) fn get_value <let KeyBytes : u32 , let StringBytes : u32 >(
293
+ pub fn get_value <let KeyBytes : u32 , let StringBytes : u32 >(
294
294
self ,
295
295
key : [u8 ; KeyBytes ],
296
296
) -> Option <JSONValue <StringBytes >> {
@@ -314,7 +314,7 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
314
314
* @description will revert if the string does not exist
315
315
* @note the `StringBytes` parameter defines the maximum allowable length of the returned value
316
316
**/
317
- pub ( crate ) fn get_value_unchecked <let KeyBytes : u32 , let StringBytes : u32 >(
317
+ pub fn get_value_unchecked <let KeyBytes : u32 , let StringBytes : u32 >(
318
318
self ,
319
319
key : [u8 ; KeyBytes ],
320
320
) -> JSONValue <StringBytes > {
@@ -353,7 +353,7 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
353
353
/**
354
354
* @brief same as `get_value_unchecked` for where the key length may be less than KeyBytes
355
355
**/
356
- pub ( crate ) fn get_value_unchecked_var <let KeyBytes : u32 , let StringBytes : u32 >(
356
+ pub fn get_value_unchecked_var <let KeyBytes : u32 , let StringBytes : u32 >(
357
357
self ,
358
358
key : BoundedVec <u8 , KeyBytes >,
359
359
) -> JSONValue <StringBytes > {
@@ -371,7 +371,7 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
371
371
* @brief if the root JSON is an array, extract a value given by the position of the target in the source array
372
372
* @description returns an Option<BoundedVec> which will be null if the value does not exist
373
373
**/
374
- pub ( crate ) fn get_value_from_array <let StringBytes : u32 >(
374
+ pub fn get_value_from_array <let StringBytes : u32 >(
375
375
self ,
376
376
array_index : Field ,
377
377
) -> Option <JSONValue <StringBytes >> {
@@ -416,7 +416,7 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
416
416
* @brief if the root JSON is an array, extract a value given by the position of the target in the source array
417
417
* @description will revert if the value does not exist
418
418
**/
419
- pub ( crate ) fn get_value_from_array_unchecked <let StringBytes : u32 >(
419
+ pub fn get_value_from_array_unchecked <let StringBytes : u32 >(
420
420
self ,
421
421
array_index : Field ,
422
422
) -> JSONValue <StringBytes > {
@@ -449,7 +449,7 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
449
449
/**
450
450
* @brief if the root JSON is an object, get a nested value out of the JSON, which may be several keys deep
451
451
**/
452
- pub ( crate ) fn get_value_from_path <let KeyBytes : u32 , let StringBytes : u32 , let PathDepth : u32 >(
452
+ pub fn get_value_from_path <let KeyBytes : u32 , let StringBytes : u32 , let PathDepth : u32 >(
453
453
self ,
454
454
keys : [BoundedVec <u8 , KeyBytes >; PathDepth ],
455
455
) -> Option <JSONValue <StringBytes >> {
0 commit comments