nibiru_std/proto/buf/cosmos.base.query.v1beta1.rs
1// @generated
2/// PageRequest is to be embedded in gRPC request messages for efficient
3/// pagination. Ex:
4///
5/// message SomeRequest {
6/// Foo some_parameter = 1;
7/// PageRequest pagination = 2;
8/// }
9#[allow(clippy::derive_partial_eq_without_eq)]
10#[derive(Clone, PartialEq, ::prost::Message)]
11pub struct PageRequest {
12 /// key is a value returned in PageResponse.next_key to begin
13 /// querying the next page most efficiently. Only one of offset or key
14 /// should be set.
15 #[prost(bytes="bytes", tag="1")]
16 pub key: ::prost::bytes::Bytes,
17 /// offset is a numeric offset that can be used when key is unavailable.
18 /// It is less efficient than using key. Only one of offset or key should
19 /// be set.
20 #[prost(uint64, tag="2")]
21 pub offset: u64,
22 /// limit is the total number of results to be returned in the result page.
23 /// If left empty it will default to a value to be set by each app.
24 #[prost(uint64, tag="3")]
25 pub limit: u64,
26 /// count_total is set to true to indicate that the result set should include
27 /// a count of the total number of items available for pagination in UIs.
28 /// count_total is only respected when offset is used. It is ignored when key
29 /// is set.
30 #[prost(bool, tag="4")]
31 pub count_total: bool,
32 /// reverse is set to true if results are to be returned in the descending order.
33 ///
34 /// Since: cosmos-sdk 0.43
35 #[prost(bool, tag="5")]
36 pub reverse: bool,
37}
38/// PageResponse is to be embedded in gRPC response messages where the
39/// corresponding request message has used PageRequest.
40///
41/// message SomeResponse {
42/// repeated Bar results = 1;
43/// PageResponse page = 2;
44/// }
45#[allow(clippy::derive_partial_eq_without_eq)]
46#[derive(Clone, PartialEq, ::prost::Message)]
47pub struct PageResponse {
48 /// next_key is the key to be passed to PageRequest.key to
49 /// query the next page most efficiently. It will be empty if
50 /// there are no more results.
51 #[prost(bytes="bytes", tag="1")]
52 pub next_key: ::prost::bytes::Bytes,
53 /// total is total number of results available if PageRequest.count_total
54 /// was set, its value is undefined otherwise
55 #[prost(uint64, tag="2")]
56 pub total: u64,
57}
58// @@protoc_insertion_point(module)