pub struct CursorCodec { /* private fields */ }Implementations§
Source§impl CursorCodec
impl CursorCodec
pub fn new(key: impl AsRef<[u8]>) -> Result<Self, ConfigError>
pub fn encode<E: SearchEntity>( &self, order: &[OrderBy], values: &[CursorValue], ) -> Result<String, ParamError>
pub fn decode<E: SearchEntity>( &self, token: &str, order: &[OrderBy], ) -> Result<Cursor, ParamError>
Trait Implementations§
Source§impl Clone for CursorCodec
impl Clone for CursorCodec
Auto Trait Implementations§
impl Freeze for CursorCodec
impl RefUnwindSafe for CursorCodec
impl Send for CursorCodec
impl Sync for CursorCodec
impl Unpin for CursorCodec
impl UnsafeUnpin for CursorCodec
impl UnwindSafe for CursorCodec
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