pub struct Cursor {
pub cursor_id: String,
pub max_lines: u32,
}
Expand description
Pagination cursor, denoted by a cursor ID.
In order to create a cursor, simply call Cursor::new()
.
This will set the cursor ID to “CREATE”.
Once you send a request containing the cursor, the WEBWARE server returns a new cursor ID. If there are no more results, the cursor ID will be “CLOSED”.
Fields§
§cursor_id: String
The cursor ID.
Is “CREATE” if the cursor has just been created. Is “CLOSED” if there are no more results.
max_lines: u32
The maximum amount of results that will be returned.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cursor
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnwindSafe for Cursor
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