Skip to content

Commit

Permalink
Fix pagination request PageRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Aug 16, 2023
1 parent 43de8e7 commit 96e756a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/neutron-sdk/src/bindings/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,21 @@ pub struct PageRequest {
/// **key** is a value returned in PageResponse.next_key to begin
/// querying the next page most efficiently. Only one of offset or key
/// should be set.
key: Binary,
pub key: Binary,
/// **offset** is a numeric offset that can be used when key is unavailable.
/// It is less efficient than using key. Only one of offset or key should
/// be set.
offset: u64,
pub offset: u64,
/// **limit** is the total number of results to be returned in the result page.
/// If left empty it will default to a value to be set by each app.
limit: u64,
pub limit: u64,
/// **count_total** is set to true to indicate that the result set should include
/// a count of the total number of items available for pagination in UIs.
/// count_total is only respected when offset is used. It is ignored when key
/// is set.
count_total: bool,
pub count_total: bool,
/// reverse is set to true if results are to be returned in the descending order.
reverse: bool,
pub reverse: bool,
}

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
Expand Down

0 comments on commit 96e756a

Please sign in to comment.