pub struct JiraOffsetPage<T> {
pub values: Vec<T>,
pub start_at: Option<u64>,
pub max_results: Option<u64>,
pub total: Option<u64>,
pub is_last: Option<bool>,
}Expand description
A Jira page from an endpoint that paginates by offset.
Jira has two pagination styles and they are not interchangeable.
/search/jql uses an opaque nextPageToken (JiraPage); the classic
endpoints – project search, webhooks, field and workflow lists – return
startAt/maxResults/total/isLast and expect the caller to advance an
offset itself.
The module this replaced modelled only this second shape, and modelled it for an endpoint that had since moved to the first, which is why nothing adopted it. Both are supported now, each where it applies.
Fields§
§values: Vec<T>§start_at: Option<u64>§max_results: Option<u64>§total: Option<u64>§is_last: Option<bool>Trait Implementations§
Source§impl<T: Clone> Clone for JiraOffsetPage<T>
impl<T: Clone> Clone for JiraOffsetPage<T>
Source§impl<T: Debug> Debug for JiraOffsetPage<T>
impl<T: Debug> Debug for JiraOffsetPage<T>
Source§impl<'de, T> Deserialize<'de> for JiraOffsetPage<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for JiraOffsetPage<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: DeserializeOwned> Page for JiraOffsetPage<T>
impl<T: DeserializeOwned> Page for JiraOffsetPage<T>
Auto Trait Implementations§
impl<T> Freeze for JiraOffsetPage<T>
impl<T> RefUnwindSafe for JiraOffsetPage<T>where
Vec<T>: RefUnwindSafe,
impl<T> Send for JiraOffsetPage<T>
impl<T> Sync for JiraOffsetPage<T>
impl<T> Unpin for JiraOffsetPage<T>
impl<T> UnsafeUnpin for JiraOffsetPage<T>where
Vec<T>: UnsafeUnpin,
impl<T> UnwindSafe for JiraOffsetPage<T>where
Vec<T>: UnwindSafe,
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