pub struct PageRequest {
pub key: Vec<u8>,
pub offset: u64,
pub limit: u64,
pub count_total: bool,
pub reverse: bool,
}
Fields§
§key: Vec<u8>
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.
offset: u64
offset is a numeric offset that can be used when the key is unavailable. It is less efficient than using the key. Only one of offset or key should be set.
limit: u64
limit is the total number of results to be returned to the result page. If left empty, it will default to a value to be set by each app.
count_total: bool
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.
reverse: bool
reverse is set to true if results are to be returned in the descending order.
Implementations§
Source§impl PageRequest
impl PageRequest
Trait Implementations§
Source§impl Clone for PageRequest
impl Clone for PageRequest
Source§fn clone(&self) -> PageRequest
fn clone(&self) -> PageRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PageRequest
impl Debug for PageRequest
Source§impl Default for PageRequest
impl Default for PageRequest
Source§fn default() -> PageRequest
fn default() -> PageRequest
Returns the “default value” for a type. Read more
Source§impl From<PageRequest> for PageRequest
impl From<PageRequest> for PageRequest
Source§fn from(request: PageRequest) -> Self
fn from(request: PageRequest) -> Self
Converts to this type from the input type.
Source§impl From<PageRequest> for PageRequest
impl From<PageRequest> for PageRequest
Source§fn from(request: RawPageRequest) -> Self
fn from(request: RawPageRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PageRequest
impl RefUnwindSafe for PageRequest
impl Send for PageRequest
impl Sync for PageRequest
impl Unpin for PageRequest
impl UnwindSafe for PageRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request