pub struct Args {
pub first: Option<u16>,
pub after: Option<Value>,
pub last: Option<u16>,
pub before: Option<Value>,
}Expand description
Pagination arguments for querying events.
Supports both forward (first/after) and backward (last/before) pagination.
§Example
ⓘ
// Forward: first 20 items
let args = Args::forward(20, None);
// Forward: next 20 items after cursor
let args = Args::forward(20, Some(end_cursor));
// Backward: last 20 items before cursor
let args = Args::backward(20, Some(start_cursor));Fields§
§first: Option<u16>Number of items for forward pagination
after: Option<Value>Cursor to start after (forward pagination)
last: Option<u16>Number of items for backward pagination
before: Option<Value>Cursor to end before (backward pagination)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Args
impl<'de> Deserialize<'de> for Args
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
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
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