pub enum PageCursorError {
InvalidEncoding,
InvalidJson(String),
WrongKind {
expected: &'static str,
actual: String,
},
UnsupportedVersion {
expected: u8,
actual: u8,
},
}Expand description
Invalid opaque page cursor.
Variants§
InvalidEncoding
The cursor was not hex-encoded JSON.
InvalidJson(String)
The cursor JSON did not match a supported cursor shape.
WrongKind
The cursor was valid, but for a different paginated endpoint.
Fields
UnsupportedVersion
The cursor format version is not supported by this build.
Trait Implementations§
Source§impl Clone for PageCursorError
impl Clone for PageCursorError
Source§fn clone(&self) -> PageCursorError
fn clone(&self) -> PageCursorError
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 PageCursorError
impl Debug for PageCursorError
Source§impl Display for PageCursorError
impl Display for PageCursorError
impl Eq for PageCursorError
Source§impl Error for PageCursorError
impl Error for PageCursorError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<PageCursorError> for NamespaceCursorError
impl From<PageCursorError> for NamespaceCursorError
Source§fn from(source: PageCursorError) -> Self
fn from(source: PageCursorError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PageCursorError
impl PartialEq for PageCursorError
impl StructuralPartialEq for PageCursorError
Auto Trait Implementations§
impl Freeze for PageCursorError
impl RefUnwindSafe for PageCursorError
impl Send for PageCursorError
impl Sync for PageCursorError
impl Unpin for PageCursorError
impl UnsafeUnpin for PageCursorError
impl UnwindSafe for PageCursorError
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