pub struct CursorV1 {
pub k: Vec<String>,
pub o: SortDir,
pub s: String,
pub f: Option<String>,
pub d: String,
}Fields§
§k: Vec<String>§o: SortDir§s: String§f: Option<String>§d: StringImplementations§
Source§impl CursorV1
impl CursorV1
Sourcepub fn decode(token: &str) -> Result<Self, Error>
pub fn decode(token: &str) -> Result<Self, Error>
Decode cursor from base64url token.
§Errors
Returns Error::CursorInvalidBase64 if base64 decoding fails.
Returns Error::CursorInvalidJson if JSON parsing fails.
Returns Error::CursorInvalidVersion if the version is unsupported.
Returns Error::CursorInvalidDirection if the direction field is invalid.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CursorV1
impl RefUnwindSafe for CursorV1
impl Send for CursorV1
impl Sync for CursorV1
impl Unpin for CursorV1
impl UnwindSafe for CursorV1
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