pub struct EventCursor(/* private fields */);Expand description
Cursor for pagination in event queries.
The cursor represents the ID of an event and is used for pagination. It can be parsed from a string representation of an integer.
Note: Uses u64 internally, but Postgres BIGINT is signed (i64).
sea_query/sqlx binds u64 values, which works correctly as long as
IDs stay within i64::MAX (~9.2 quintillion). Since event IDs are
auto-incrementing from 1, this is not a practical concern.
Implementations§
Trait Implementations§
Source§impl Clone for EventCursor
impl Clone for EventCursor
Source§fn clone(&self) -> EventCursor
fn clone(&self) -> EventCursor
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 moreimpl Copy for EventCursor
Source§impl Debug for EventCursor
impl Debug for EventCursor
Source§impl Display for EventCursor
impl Display for EventCursor
impl Eq for EventCursor
Source§impl From<u64> for EventCursor
impl From<u64> for EventCursor
Source§impl FromStr for EventCursor
impl FromStr for EventCursor
Source§impl Ord for EventCursor
impl Ord for EventCursor
Source§fn cmp(&self, other: &EventCursor) -> Ordering
fn cmp(&self, other: &EventCursor) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EventCursor
impl PartialEq for EventCursor
Source§fn eq(&self, other: &EventCursor) -> bool
fn eq(&self, other: &EventCursor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for EventCursor
impl PartialOrd for EventCursor
impl StructuralPartialEq for EventCursor
Source§impl TryFrom<&str> for EventCursor
impl TryFrom<&str> for EventCursor
Auto Trait Implementations§
impl Freeze for EventCursor
impl RefUnwindSafe for EventCursor
impl Send for EventCursor
impl Sync for EventCursor
impl Unpin for EventCursor
impl UnsafeUnpin for EventCursor
impl UnwindSafe for EventCursor
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