pub struct PageInfo {
pub total: Option<u64>,
pub truncated: bool,
pub next: Option<Continuation>,
}Expand description
What a page of results tells us beyond the items themselves.
Fields§
§total: Option<u64>The server’s own count of matching items, where it reports one.
Frequently None. Jira’s /search/jql does not return a total at all,
and Bitbucket omits size on collections it considers expensive. A
caller must not present the absence of a total as zero.
truncated: boolWhether results were cut short, by the caller’s limit or by the request budget. When true, the answer is incomplete and must be labelled so.
next: Option<Continuation>Where the next page would have started, when truncated.
Trait Implementations§
impl Eq for PageInfo
impl StructuralPartialEq for PageInfo
Auto Trait Implementations§
impl Freeze for PageInfo
impl RefUnwindSafe for PageInfo
impl Send for PageInfo
impl Sync for PageInfo
impl Unpin for PageInfo
impl UnsafeUnpin for PageInfo
impl UnwindSafe for PageInfo
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.