pub enum Continuation {
Url(String),
Token {
param: String,
value: String,
},
}Expand description
How to ask for the next page.
The two products disagree on the mechanism, and the difference is not cosmetic. Bitbucket hands back an absolute URL that already carries the cursor; Jira hands back an opaque token that the caller must place in a query parameter itself.
Variants§
Url(String)
An absolute URL from the server. Passed through safe_join, so a
response pointing at another origin is rejected rather than followed.
Token
An opaque token, plus the query parameter it belongs in. The parameter name travels with the token so that this crate never has to hardcode a detail of one Jira endpoint.
Trait Implementations§
Source§impl Clone for Continuation
impl Clone for Continuation
Source§fn clone(&self) -> Continuation
fn clone(&self) -> Continuation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Continuation
impl Debug for Continuation
impl Eq for Continuation
Source§impl PartialEq for Continuation
impl PartialEq for Continuation
impl StructuralPartialEq for Continuation
Auto Trait Implementations§
impl Freeze for Continuation
impl RefUnwindSafe for Continuation
impl Send for Continuation
impl Sync for Continuation
impl Unpin for Continuation
impl UnsafeUnpin for Continuation
impl UnwindSafe for Continuation
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.